Skip to content

Commit e71323b

Browse files
committed
fix: script for encounters
1 parent 64f2cb5 commit e71323b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/migrate_with_data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@
163163
if addr in early_access_addr:
164164
user["earlyAccess"]["active"] = True
165165

166-
for id in new_dict["app_state"]["cardchain"]["encounters"]:
167-
if isinstance(new_dict["app_state"]["cardchain"]["encounters"][id]["parameters"], dict):
166+
for id, encounter in enumerate(new_dict["app_state"]["cardchain"]["encounters"]):
167+
if isinstance(encounter["parameters"], dict):
168168
new_dict["app_state"]["cardchain"]["encounters"][id]["parameters"] = []
169169

170170

0 commit comments

Comments
 (0)