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/genbanlist.py | |
| parent | 819380fa314812dcbb99ce06cc029dd51533b155 (diff) | |
update banlist
Diffstat (limited to 'data/genbanlist.py')
| -rw-r--r-- | data/genbanlist.py | 3 |
1 files changed, 3 insertions, 0 deletions
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)) |
