Yichong Lu
commited on
Commit
·
203a406
1
Parent(s):
4750ab8
debug
Browse files- competitions/app.py +5 -4
competitions/app.py
CHANGED
@@ -340,10 +340,11 @@ def new_submission(
|
|
340 |
if submission_api.exists_submission_info(team_id) and submission_api.count_by_status(team_id, [SubmissionStatus.QUEUED, SubmissionStatus.PENDING, SubmissionStatus.PROCESSING]) > 0:
|
341 |
return {"response": "Another submission is being processed. Please wait a moment."}
|
342 |
competition_info = CompetitionInfo(competition_id=COMPETITION_ID, autotrain_token=HF_TOKEN)
|
343 |
-
if team_id in team_submission_limit_dict.keys():
|
344 |
-
|
345 |
-
else:
|
346 |
-
|
|
|
347 |
sub = Submissions(
|
348 |
end_date=competition_info.end_date,
|
349 |
submission_limit=submission_limit,
|
|
|
340 |
if submission_api.exists_submission_info(team_id) and submission_api.count_by_status(team_id, [SubmissionStatus.QUEUED, SubmissionStatus.PENDING, SubmissionStatus.PROCESSING]) > 0:
|
341 |
return {"response": "Another submission is being processed. Please wait a moment."}
|
342 |
competition_info = CompetitionInfo(competition_id=COMPETITION_ID, autotrain_token=HF_TOKEN)
|
343 |
+
# if team_id in team_submission_limit_dict.keys():
|
344 |
+
# submission_limit = team_submission_limit_dict[team_id]
|
345 |
+
# else:
|
346 |
+
# submission_limit = competition_info.submission_limit
|
347 |
+
submission_limit = competition_info.submission_limit
|
348 |
sub = Submissions(
|
349 |
end_date=competition_info.end_date,
|
350 |
submission_limit=submission_limit,
|