laverdes commited on
Commit
717c4c8
·
verified ·
1 Parent(s): b882507

fix: appending instead of updating

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -123,7 +123,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
123
  response.raise_for_status()
124
  result_data = response.json()
125
  log_file_dict = copy.deepcopy(results_log)
126
- log_file_dict.update({'result_data': result_data})
127
 
128
  with open("results_log.json", "w") as results_session_file:
129
  json.dump(log_file_dict, results_session_file)
 
123
  response.raise_for_status()
124
  result_data = response.json()
125
  log_file_dict = copy.deepcopy(results_log)
126
+ log_file_dict.append({'result_data': result_data})
127
 
128
  with open("results_log.json", "w") as results_session_file:
129
  json.dump(log_file_dict, results_session_file)