mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-07 15:47:27 +08:00
[M] Static endpoints
This commit is contained in:
1191
src/main/resources/static/chusan_game_event.json
Normal file
1191
src/main/resources/static/chusan_game_event.json
Normal file
File diff suppressed because it is too large
Load Diff
8
src/main/resources/static/format.py
Normal file
8
src/main/resources/static/format.py
Normal 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')
|
||||
Reference in New Issue
Block a user