[M] Static endpoints

This commit is contained in:
Azalea
2024-12-20 08:42:43 -05:00
parent 698422a41e
commit 10c1b9bc29
9 changed files with 1230 additions and 253 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,8 @@
from pathlib import Path
import json
for f in Path(__file__).parent.glob('*.json'):
obj = json.loads(f.read_text('utf-8'))
blacklist = ['end_date', 'start_date']
obj = [{k: v for k, v in o.items() if k not in blacklist} for o in obj]
f.write_text('[\n' + ',\n'.join(json.dumps(o, ensure_ascii=False) for o in obj) + '\n]\n', 'utf-8')