Commit
•
4ab2c19
1
Parent(s):
749add4
Update app.py
Browse files
app.py
CHANGED
@@ -330,9 +330,10 @@ def generate_certificate(certificate_model, first_name, last_name):
|
|
330 |
|
331 |
|
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)
|
|
|
330 |
|
331 |
|
332 |
def add_certified_user(hf_username, first_name, last_name, pass_percentage):
|
333 |
+
print("ADD CERTIFIED USER")
|
334 |
repo.git_pull()
|
335 |
history = pd.read_csv(os.path.join(CERTIFIED_USERS_DIR, CERTIFIED_USERS_FILENAME))
|
336 |
+
query = 'hf_username == ' + hf_username
|
337 |
check = history.query(query)
|
338 |
print("CHECK", check)
|
339 |
print("INDEX", check.index)
|