ThomasSimonini HF staff commited on
Commit
6067b4d
1 Parent(s): b2cc946

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -336,7 +336,7 @@ def add_certified_user(hf_username, first_name, last_name, pass_percentage):
336
 
337
  # Check if this hf_username is already in our dataset:
338
  check = history.loc[history['hf_username'] == hf_username]
339
- if !check.is_empty:
340
  new_row = pd.DataFrame({'hf_username': hf_username, 'first_name': first_name, 'last_name': last_name, 'pass_percentage': pass_percentage, 'datetime': time.time()})
341
  print("CHECK", check)
342
  print("INDEX", check.index[0])
 
336
 
337
  # Check if this hf_username is already in our dataset:
338
  check = history.loc[history['hf_username'] == hf_username]
339
+ if not check.is_empty:
340
  new_row = pd.DataFrame({'hf_username': hf_username, 'first_name': first_name, 'last_name': last_name, 'pass_percentage': pass_percentage, 'datetime': time.time()})
341
  print("CHECK", check)
342
  print("INDEX", check.index[0])