Change type

Signed-off-by: Johannes Joens <johannes@joens.email>
This commit is contained in:
jopejoe1 2022-11-03 14:49:24 +01:00
parent d3a221a40a
commit d9b0c8e8c5

View File

@ -57,6 +57,7 @@ def fetch_modified_version(path, version):
}
version_json["downloads"] = downloads
version_json["type"] = "old_snapshot"
with open(path, 'w', encoding='utf-8') as f:
json.dump(version_json, f, sort_keys=True, indent=4)
@ -134,6 +135,7 @@ def main():
old_snapshots_path = os.path.join(UPSTREAM_DIR, VERSIONS_DIR, f"{x}.json")
print("Updating old snapshot " + version.id)
fetch_modified_version(old_snapshots_path, version)
if not os.path.isfile(old_snapshots_path):
fetch_modified_version(old_snapshots_path, version)
else: