[F] Fix base url

pull/25/head
Hykilpikonna 2021-12-29 11:41:58 -05:00 committed by GitHub
parent 2e8e01f378
commit cd28a8e14d
Signed by: github
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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']}) output.append({'path': p, 'id': o['id'], 'name': o['name'], 'profileUrl': o['profileUrl'], 'baseUrl': f'/people/{p}'})
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: