Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
·
749add4
1
Parent(s):
40f2bb2
Update app.py
Browse files
app.py
CHANGED
@@ -332,7 +332,8 @@ def generate_certificate(certificate_model, first_name, last_name):
|
|
332 |
def add_certified_user(hf_username, first_name, last_name, pass_percentage):
|
333 |
repo.git_pull()
|
334 |
history = pd.read_csv(os.path.join(CERTIFIED_USERS_DIR, CERTIFIED_USERS_FILENAME))
|
335 |
-
|
|
|
336 |
print("CHECK", check)
|
337 |
print("INDEX", check.index)
|
338 |
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])
|
|
|
332 |
def add_certified_user(hf_username, first_name, last_name, pass_percentage):
|
333 |
repo.git_pull()
|
334 |
history = pd.read_csv(os.path.join(CERTIFIED_USERS_DIR, CERTIFIED_USERS_FILENAME))
|
335 |
+
query = 'hf_username ==' + hf_username
|
336 |
+
check = history.query(query)
|
337 |
print("CHECK", check)
|
338 |
print("INDEX", check.index)
|
339 |
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])
|