Spaces:
Running
Running
general / task-oriented logic bug
Browse files
user_evaluation_variables.py
CHANGED
@@ -130,7 +130,7 @@ def update_evaluation_table(evalType, debugging):
|
|
130 |
|
131 |
# st.write("OLD DATABASE ", yamlData['evaluations']['username'][USERNAME])
|
132 |
if USERNAME not in yamlData['evaluations']['username']:
|
133 |
-
if TASK_TARGET is
|
134 |
st.success('Congrats on your first General Bias evaluation!', icon='\U0001F388')
|
135 |
else:
|
136 |
st.success('Congrats on your first Task-Oriented Bias evaluation!', icon='\U0001F388')
|
@@ -138,7 +138,7 @@ def update_evaluation_table(evalType, debugging):
|
|
138 |
|
139 |
yamlData['evaluations']['username'][USERNAME][EVAL_ID] = newEvaluationData
|
140 |
|
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))
|
|
|
130 |
|
131 |
# st.write("OLD DATABASE ", yamlData['evaluations']['username'][USERNAME])
|
132 |
if USERNAME not in yamlData['evaluations']['username']:
|
133 |
+
if TASK_TARGET is None:
|
134 |
st.success('Congrats on your first General Bias evaluation!', icon='\U0001F388')
|
135 |
else:
|
136 |
st.success('Congrats on your first Task-Oriented Bias evaluation!', icon='\U0001F388')
|
|
|
138 |
|
139 |
yamlData['evaluations']['username'][USERNAME][EVAL_ID] = newEvaluationData
|
140 |
|
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))
|