diff options
| author | Mistivia <i@mistivia.com> | 2025-03-08 21:30:23 +0800 |
|---|---|---|
| committer | Mistivia <i@mistivia.com> | 2025-03-08 21:30:31 +0800 |
| commit | b1d0493153689803b5a30d9a9c10e0f505159980 (patch) | |
| tree | 3a0c0a8c72895fd51192b695a12e55d96c1b9872 /data | |
| parent | 819380fa314812dcbb99ce06cc029dd51533b155 (diff) | |
update banlist
Diffstat (limited to 'data')
| -rw-r--r-- | data/banlist-md.json | 4 | ||||
| -rw-r--r-- | data/build-card-info.py | 2 | ||||
| -rw-r--r-- | data/genbanlist.py | 3 | ||||
| -rw-r--r-- | data/update.sh | 2 |
4 files changed, 6 insertions, 5 deletions
diff --git a/data/banlist-md.json b/data/banlist-md.json index 9b2db11..a82e603 100644 --- a/data/banlist-md.json +++ b/data/banlist-md.json @@ -1,5 +1,5 @@ { - "date": "2025-02-06", + "date": "2025-03-06", "regulation": { "4023": 1, "4024": 1, @@ -77,7 +77,6 @@ "8197": 1, "8318": 0, "8440": 0, - "8469": 1, "8472": 0, "8515": 0, "8602": 1, @@ -136,7 +135,6 @@ "14128": 0, "14130": 0, "14144": 1, - "14301": 2, "14314": 0, "14627": 1, "14740": 1, diff --git a/data/build-card-info.py b/data/build-card-info.py index 53f3bf2..38f7b55 100644 --- a/data/build-card-info.py +++ b/data/build-card-info.py @@ -12,7 +12,7 @@ def convert(card): newCard = dict() newCard['names'] = [] for namek in ['cn_name', 'sc_name', 'md_name', 'nwbbs_n', \ - 'cnocg_n', 'jp_ruby', 'jp_name', 'en_name']: + 'cnocg_n', 'jp_ruby', 'jp_name', 'en_name', 'set_ext']: if namek in card and len(card[namek]) > 0: newCard['names'].append(card[namek]) newCard['isExtra'] = False diff --git a/data/genbanlist.py b/data/genbanlist.py index 65c668e..7c67657 100644 --- a/data/genbanlist.py +++ b/data/genbanlist.py @@ -12,6 +12,8 @@ result['semiLimit'] = [] for k in cards: cardId[k] = cards[k]['id'] + if 'jp_name' not in cards[k] and 'jp_ruby' not in cards[k]: + result['ban'].append(str(cards[k]['id'])) banlist = None with open('banlist.json', 'r') as fp: @@ -26,5 +28,6 @@ for cid in regulation: result['limit'].append(sid) if regulation[cid] == 2: result['semiLimit'].append(sid) +result['ban'] = list(set(result['ban'])) print(json.dumps(result, indent=4)) diff --git a/data/update.sh b/data/update.sh index 1e2fd59..153bcc8 100644 --- a/data/update.sh +++ b/data/update.sh @@ -7,6 +7,6 @@ python3 genbanlist.py > ../src/ocg_banlist.json python3 cn-genbanlist.py > ../src/cnocg_banlist.json python3 md-genbanlist.py > ../src/md_banlist.json -rsync -avz ./card_db_parts/ root@bdwg:/volume/webroot/card_db_parts/ +rsync -avz ./card_db_parts/ root@raye:/volume/webroot/card_db_parts/ cd .. sh deploy.sh |
