test
Browse files- src/submission/submit.py +3 -3
src/submission/submit.py
CHANGED
@@ -133,12 +133,12 @@ def add_new_eval(
|
|
133 |
queue_data = json.load(f)
|
134 |
|
135 |
queue_len = len(queue_data)
|
|
|
136 |
|
137 |
-
|
138 |
-
if len(queue_data) == 0:
|
139 |
queue_data = []
|
140 |
elif queue_len >= 2:
|
141 |
-
return styled_warning("The evaluation queue is full
|
142 |
|
143 |
queue_data.append(eval_entry)
|
144 |
|
|
|
133 |
queue_data = json.load(f)
|
134 |
|
135 |
queue_len = len(queue_data)
|
136 |
+
print(f"Queue length: {queue_len}")
|
137 |
|
138 |
+
if queue_len == 0:
|
|
|
139 |
queue_data = []
|
140 |
elif queue_len >= 2:
|
141 |
+
return styled_warning("The evaluation queue is full at the moment. Please try again in one hour")
|
142 |
|
143 |
queue_data.append(eval_entry)
|
144 |
|