Add Male entry to GENDERS in nethack import script

This commit is contained in:
Eryn Wells 2022-11-24 08:25:30 -05:00
parent 828bcb0f94
commit 2011ccdd78

View file

@ -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')