Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -523,8 +523,8 @@ def add_new_eval(
|
|
| 523 |
|
| 524 |
contact_infos = load_dataset(CONTACT_DATASET, YEAR_VERSION, token=TOKEN, download_mode="force_redownload", verification_mode=VerificationMode.NO_CHECKS, trust_remote_code=True)
|
| 525 |
user_submission_dates = sorted(row["date"] for row in contact_infos[val_or_test] if row["username"] == profile.username)
|
| 526 |
-
if len(user_submission_dates) > 0 and user_submission_dates[-1] == datetime.datetime.today().strftime('%Y-%m-%d'):
|
| 527 |
-
|
| 528 |
|
| 529 |
|
| 530 |
is_validation = val_or_test == "validation"
|
|
|
|
| 523 |
|
| 524 |
contact_infos = load_dataset(CONTACT_DATASET, YEAR_VERSION, token=TOKEN, download_mode="force_redownload", verification_mode=VerificationMode.NO_CHECKS, trust_remote_code=True)
|
| 525 |
user_submission_dates = sorted(row["date"] for row in contact_infos[val_or_test] if row["username"] == profile.username)
|
| 526 |
+
# if len(user_submission_dates) > 0 and user_submission_dates[-1] == datetime.datetime.today().strftime('%Y-%m-%d'):
|
| 527 |
+
# return format_error("You already submitted once today, please try again tomorrow.")
|
| 528 |
|
| 529 |
|
| 530 |
is_validation = val_or_test == "validation"
|