From 2011ccdd789a8f39902f9a06514a1cb4b2f43146 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Thu, 24 Nov 2022 08:25:30 -0500 Subject: [PATCH] Add Male entry to GENDERS in nethack import script --- scripts/import-nethack-logfile.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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')