Update app.py
Browse files
app.py
CHANGED
@@ -18,6 +18,7 @@ def check_user_score(username):
|
|
18 |
# Function to check if certificate entry exists
|
19 |
def has_certificate_entry(username):
|
20 |
cert_data = load_dataset(CERTIFICATES_DATASET, split="train", download_mode="force_redownload")
|
|
|
21 |
return any(row["username"] == username for row in cert_data)
|
22 |
|
23 |
# Function to add certificate entry
|
|
|
18 |
# Function to check if certificate entry exists
|
19 |
def has_certificate_entry(username):
|
20 |
cert_data = load_dataset(CERTIFICATES_DATASET, split="train", download_mode="force_redownload")
|
21 |
+
print(username)
|
22 |
return any(row["username"] == username for row in cert_data)
|
23 |
|
24 |
# Function to add certificate entry
|