Gregor Betz
commited on
Commit
•
b199c90
1
Parent(s):
c28665f
fix: check data is not None
Browse files- backend/data.py +2 -1
backend/data.py
CHANGED
@@ -102,7 +102,8 @@ def load_cot_data():
|
|
102 |
del dataset
|
103 |
config_data = []
|
104 |
for data in df_cottraces.config_data.to_list():
|
105 |
-
|
|
|
106 |
del df_cottraces
|
107 |
df_cotconfigs = pd.DataFrame(config_data)
|
108 |
df_cotconfigs.drop_duplicates(inplace=True, ignore_index=True)
|
|
|
102 |
del dataset
|
103 |
config_data = []
|
104 |
for data in df_cottraces.config_data.to_list():
|
105 |
+
if data is not None:
|
106 |
+
config_data.append(dict(data))
|
107 |
del df_cottraces
|
108 |
df_cotconfigs = pd.DataFrame(config_data)
|
109 |
df_cotconfigs.drop_duplicates(inplace=True, ignore_index=True)
|