Spaces:
Sleeping
Sleeping
Nicolas Wagner commited on
Commit ·
113cb79
1
Parent(s): aabac86
decrease to two minutes
Browse files
src/submission/submit_csv.py
CHANGED
|
@@ -107,8 +107,8 @@ def check_rate_limit(team_name: str) -> tuple[bool, str]:
|
|
| 107 |
now = datetime.now(timezone.utc)
|
| 108 |
time_diff = now - last_time
|
| 109 |
|
| 110 |
-
if time_diff < timedelta(minutes=
|
| 111 |
-
remaining_seconds = (timedelta(minutes=
|
| 112 |
remaining_minutes = int(remaining_seconds // 60)
|
| 113 |
remaining_secs = int(remaining_seconds % 60)
|
| 114 |
return (
|
|
|
|
| 107 |
now = datetime.now(timezone.utc)
|
| 108 |
time_diff = now - last_time
|
| 109 |
|
| 110 |
+
if time_diff < timedelta(minutes=2):
|
| 111 |
+
remaining_seconds = (timedelta(minutes=2) - time_diff).total_seconds()
|
| 112 |
remaining_minutes = int(remaining_seconds // 60)
|
| 113 |
remaining_secs = int(remaining_seconds % 60)
|
| 114 |
return (
|