ThomasSimonini HF staff commited on
Commit
2cb378a
·
1 Parent(s): 3096d19

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -339,7 +339,7 @@ def add_certified_user(hf_username, first_name, last_name, pass_percentage):
339
  if not check.empty:
340
  #print("CHECK", check)
341
  #print("INDEX", check.index[0])
342
- data = data.drop(labels=check.index[0], axis=0)
343
  #history.iloc[[check.index[0]],['hf_username', 'first_name', 'last_name', 'pass_percentage', 'datetime']] = hf_username, first_name, last_name, pass_percentage, time.time()
344
 
345
  new_row = pd.DataFrame({'hf_username': hf_username, 'first_name': first_name, 'last_name': last_name, 'pass_percentage': pass_percentage, 'datetime': time.time()}, index=[0])
 
339
  if not check.empty:
340
  #print("CHECK", check)
341
  #print("INDEX", check.index[0])
342
+ history = history.drop(labels=check.index[0], axis=0)
343
  #history.iloc[[check.index[0]],['hf_username', 'first_name', 'last_name', 'pass_percentage', 'datetime']] = hf_username, first_name, last_name, pass_percentage, time.time()
344
 
345
  new_row = pd.DataFrame({'hf_username': hf_username, 'first_name': first_name, 'last_name': last_name, 'pass_percentage': pass_percentage, 'datetime': time.time()}, index=[0])