We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 961e678 commit 10a017eCopy full SHA for 10a017e
db_functions.py
@@ -8,6 +8,7 @@
8
from pymysql.converters import escape_string
9
from collections import defaultdict
10
import re
11
+import copy
12
13
SPECIAL_SYMBOLS = '/":*|\\?%<>\x7f'
14
@@ -912,7 +913,8 @@ def set_process(
912
913
set_to_candidate_dict = defaultdict(list)
914
id_to_fileset_dict = defaultdict(dict)
915
- game_data_lookup = {fs["name"]: fs for fs in game_data}
916
+ # Deep copy to avoid changes in game_data in the loop affecting the lookup map.
917
+ game_data_lookup = {fs["name"]: copy.deepcopy(fs) for fs in game_data}
918
919
for fileset in game_data:
920
# Ideally romof should be enough, but adding in case of an edge case
0 commit comments