ThomasSimonini HF Staff commited on
Commit
d8ceaf0
·
1 Parent(s): ae21898

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -333,7 +333,7 @@ def add_certified_user(hf_username, first_name, last_name, pass_percentage):
333
  history = pd.read_csv(os.path.join(CERTIFIED_USERS_DIR, CERTIFIED_USERS_FILENAME))
334
  new_row = {'hf_username': hf_username, 'first_name': first_name, 'last_name': last_name, 'pass_percentage': pass_percentage, 'datetime': time.time()}
335
  new_history = pd.DataFrame(new_row)
336
- history = pd.concat([history, new_history], ignore_index=True))
337
  print("HISTORY", history)
338
  history.to_csv(os.path.join(CERTIFIED_USERS_DIR, CERTIFIED_USERS_FILENAME), index=False)
339
  df.to_csv(os.path.join(CERTIFIED_USERS_DIR, CERTIFIED_USERS_FILENAME), index=False)
 
333
  history = pd.read_csv(os.path.join(CERTIFIED_USERS_DIR, CERTIFIED_USERS_FILENAME))
334
  new_row = {'hf_username': hf_username, 'first_name': first_name, 'last_name': last_name, 'pass_percentage': pass_percentage, 'datetime': time.time()}
335
  new_history = pd.DataFrame(new_row)
336
+ history = pd.concat([history, new_history], ignore_index=True)
337
  print("HISTORY", history)
338
  history.to_csv(os.path.join(CERTIFIED_USERS_DIR, CERTIFIED_USERS_FILENAME), index=False)
339
  df.to_csv(os.path.join(CERTIFIED_USERS_DIR, CERTIFIED_USERS_FILENAME), index=False)