Spaces:
Running
Running
Update user_evaluation_variables.py
Browse files
user_evaluation_variables.py
CHANGED
@@ -137,8 +137,8 @@ def update_evaluation_table(evalType, debugging):
|
|
137 |
yamlData['evaluations']['username'][USERNAME]= {}
|
138 |
|
139 |
yamlData['evaluations']['username'][USERNAME][EVAL_ID] = newEvaluationData
|
140 |
-
|
141 |
-
|
142 |
with EVAL_DATABASE_UPDATE_SCHEDULER.lock:
|
143 |
with open(evalDataPath, 'w') as yaml_file:
|
144 |
yaml_file.write(yaml.dump(yamlData, default_flow_style=False))
|
|
|
137 |
yamlData['evaluations']['username'][USERNAME]= {}
|
138 |
|
139 |
yamlData['evaluations']['username'][USERNAME][EVAL_ID] = newEvaluationData
|
140 |
+
if debugging:
|
141 |
+
st.write("NEW DATABASE ", yamlData['evaluations']['username'][USERNAME])
|
142 |
with EVAL_DATABASE_UPDATE_SCHEDULER.lock:
|
143 |
with open(evalDataPath, 'w') as yaml_file:
|
144 |
yaml_file.write(yaml.dump(yamlData, default_flow_style=False))
|