diff --git a/scripts/import-nethack-logfile.py b/scripts/import-nethack-logfile.py index 0b2e8e0..21e6535 100755 --- a/scripts/import-nethack-logfile.py +++ b/scripts/import-nethack-logfile.py @@ -57,6 +57,7 @@ ROLES = { GENDERS = { 'Fem': 'Female', + 'Mal': 'Male', } ALIGNMENTS = { @@ -143,7 +144,7 @@ def main(argv): if output_path and output_path != '-': with open(output_path, 'r') as existing_logfile: existing_logfile_object = json.load(existing_logfile) - logfile_has_changed = existing_logfile_object.get('logfile', {}) != records + logfile_has_changed = existing_logfile_object.get('logfile', {}) != records if logfile_has_changed: output_file = open(output_path, 'w')