Skip to content

Commit

Permalink
fix: raise error when zone_id not in zoneToRetro
Browse files Browse the repository at this point in the history
  • Loading branch information
Konano committed Sep 16, 2022
1 parent 8d2a3bb commit 0263312
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def requests_get(path):
}
zoneToRetro = retro_table['zoneToRetro']
for x in retro_table['stageList'].values():
if x['hardStagedId'] is None and x['canBattleReplay'] and x['zoneId'].endswith('1'):
if x['hardStagedId'] is None and x['canBattleReplay'] and x['zoneId'].endswith('1') and x['zoneId'] in zoneToRetro.keys():
level[x['code']] = {
'zone_id': zoneToRetro[x['zoneId']],
'ap_cost': x['apCost'],
Expand Down

0 comments on commit 0263312

Please sign in to comment.