1
0
Fork 0

Remove redirect items (again?), update id map

This commit is contained in:
b 2021-10-17 21:22:56 -07:00
parent e504fcff50
commit 8e920915c0
4 changed files with 3654 additions and 5197 deletions

1555
clean.json

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load diff

View file

@ -209,7 +209,13 @@ for item in items:
items.extend(unchanged_items)
items.extend(remap_items)
with open("id_map.json","w") as id_mapfile:
print("{", file=id_mapfile)
outputs = []
for v, k in sorted((v, k) for k, v in id_map.items()):
outputs.append(f' "{k}": {v}')
print(',\n'.join(outputs), file=id_mapfile)
print("}", file=id_mapfile)
with open("clean.json", "w") as outfile:
json.dump(data, outfile, indent=2)
with open("compress.json", "w") as outfile: