diff options
| author | Mistivia <i@mistivia.com> | 2025-02-10 23:21:24 +0800 |
|---|---|---|
| committer | Mistivia <i@mistivia.com> | 2025-02-10 23:21:24 +0800 |
| commit | 39c98aef0b1077001571a11adfd6b4c80dec256a (patch) | |
| tree | 495455d698594b7f3fa0dcf7be39b7e549eedf28 /data | |
| parent | 45337902f925e8d826aae5a2347029ab03753113 (diff) | |
add loading page
Diffstat (limited to 'data')
| -rw-r--r-- | data/build-card-info.py | 6 | ||||
| -rw-r--r-- | data/update.sh (renamed from data/build.sh) | 0 |
2 files changed, 2 insertions, 4 deletions
diff --git a/data/build-card-info.py b/data/build-card-info.py index 2f46f91..53f3bf2 100644 --- a/data/build-card-info.py +++ b/data/build-card-info.py @@ -25,7 +25,5 @@ def convert(card): for k in j: outData[j[k]['id']] = convert(j[k]) -outStr = 'export const cardDb = ' + json.dumps(outData) + ';' - -with open('../src/data/cardDb.js', 'w') as fp: - fp.write(outStr) +with open('./card_db.json', 'w') as fp: + fp.write(json.dumps(outData)) diff --git a/data/build.sh b/data/update.sh index 7ae5351..7ae5351 100644 --- a/data/build.sh +++ b/data/update.sh |
