Disable useNumericalId

-Setting incorrectly converted old string numerical IDs into ints.
This commit is contained in:
AnonymousRandomPerson 2023-06-24 14:05:09 -05:00
parent aa1e1e1982
commit 952c6befd6
2 changed files with 5 additions and 4 deletions

View file

@ -39,7 +39,8 @@
filenames.append(permanent_patch_file) filenames.append(permanent_patch_file)
for filename in filenames: for filename in filenames:
if filename == permanent_patch_file: is_permanent_file = filename == permanent_patch_file
if is_permanent_file:
f = filename f = filename
else: else:
f = os.path.join(patches_dir, filename) f = os.path.join(patches_dir, filename)
@ -91,7 +92,7 @@
entry['id'] = str(last_id) entry['id'] = str(last_id)
elif isinstance(entry['id'], int): elif isinstance(entry['id'], int):
entry['id'] = str(entry['id']) entry['id'] = str(entry['id'])
elif entry['id'] not in out_ids: elif not is_permanent_file and entry['id'] not in out_ids:
out_ids.append(entry['id']) out_ids.append(entry['id'])
if entry['id'] in atlas_ids: if entry['id'] in atlas_ids:
@ -102,7 +103,7 @@
print(f"{filename}: Added {entry['id']}.") print(f"{filename}: Added {entry['id']}.")
atlas_data.append(entry) atlas_data.append(entry)
if filename != permanent_patch_file: if not is_permanent_file:
os.remove(f) os.remove(f)
except: except:

View file

@ -254,7 +254,7 @@ window.defaultVariation = defaultVariation
let defaultPeriod = variationsConfig[defaultVariation].default let defaultPeriod = variationsConfig[defaultVariation].default
window.defaultPeriod = defaultPeriod window.defaultPeriod = defaultPeriod
const useNumericalId = true const useNumericalId = false
window.useNumericalId = useNumericalId window.useNumericalId = useNumericalId
console.info(`%cThe 2022 r/place Atlas console.info(`%cThe 2022 r/place Atlas