Commit
•
413416c
1
Parent(s):
5ee993d
Update app.py
Browse files
app.py
CHANGED
@@ -334,7 +334,7 @@ def add_certified_user(hf_username, first_name, last_name, pass_percentage):
|
|
334 |
repo.git_pull()
|
335 |
history = pd.read_csv(os.path.join(CERTIFIED_USERS_DIR, CERTIFIED_USERS_FILENAME))
|
336 |
|
337 |
-
check =
|
338 |
print("CHECK", check)
|
339 |
print("INDEX", check.index)
|
340 |
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])
|
|
|
334 |
repo.git_pull()
|
335 |
history = pd.read_csv(os.path.join(CERTIFIED_USERS_DIR, CERTIFIED_USERS_FILENAME))
|
336 |
|
337 |
+
check = history.loc[history['hf_username'] == hf_username]
|
338 |
print("CHECK", check)
|
339 |
print("INDEX", check.index)
|
340 |
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])
|