1
0
mirror of https://github.com/one-among-us/data.git synced 2024-11-26 04:57:38 +08:00

[-] Remove baseDir property

This commit is contained in:
Hykilpikonna 2021-12-29 12:03:00 -05:00
parent a341f41df8
commit eb5d8e658b

View File

@ -9,7 +9,7 @@ if __name__ == '__main__':
if os.path.isfile(info_path): if os.path.isfile(info_path):
with io.open(info_path, 'r', encoding='utf-8') as f: with io.open(info_path, 'r', encoding='utf-8') as f:
o = json5.load(f) o = json5.load(f)
output.append({'path': p, 'id': o['id'], 'name': o['name'], 'profileUrl': o['profileUrl'], 'baseUrl': f'/people/{p}'}) output.append({'path': p, 'id': o['id'], 'name': o['name'], 'profileUrl': o['profileUrl']})
Path("generated").mkdir(parents=True, exist_ok=True) Path("generated").mkdir(parents=True, exist_ok=True)
with io.open('generated/people-list.json5', 'w', encoding='utf-8') as f: with io.open('generated/people-list.json5', 'w', encoding='utf-8') as f: