Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions source/mtga/set_data/dynamic.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,8 @@ def _get_data_location_hardcoded():
all_abilities = {}

loc_map = {}
try:
en = list(filter(lambda x: x["langkey"] == "EN", loc))[0]
except:
## langkeys are null in 11/21 patch???
en = loc[0]
# Post 2019-11-21 patch, language is encoded in a different key
en = list(filter(lambda x: x["langkey"] == "EN" or x["isoCode"] == "en-US", loc))[0]
for obj in en["keys"]:
# if obj["id"] in loc_map.keys():
# print("WARNING: overwriting id {} = {} with {}".format(obj["id"], loc_map[obj["id"]], obj["text"]))
Expand Down