Neil-YL commited on
Commit
5f2c56e
·
verified ·
1 Parent(s): e48be5c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -209,7 +209,6 @@ def verify_student_id(student_id):
209
 
210
  quota_remaining = check_student_quota(student_id)
211
 
212
- print(f"[DEBUG] Updating status: Queue counter: {queue_counter}")
213
 
214
  if quota_remaining <= 0:
215
  return [
@@ -260,6 +259,14 @@ def update_queue_display():
260
  def add_to_queue(student_id, R, Y, B):
261
  global queue_counter
262
 
 
 
 
 
 
 
 
 
263
  # Validate RYB inputs
264
  validation_result = validate_ryb_input(R, Y, B)
265
  if not validation_result["is_valid"]:
 
209
 
210
  quota_remaining = check_student_quota(student_id)
211
 
 
212
 
213
  if quota_remaining <= 0:
214
  return [
 
259
  def add_to_queue(student_id, R, Y, B):
260
  global queue_counter
261
 
262
+ if student_id == "debug":
263
+ yield {
264
+ "Status": "Error",
265
+ "Message": "Debug ID cannot submit to real experiment queue. Please use your student id to submit experiment."
266
+ }
267
+ return
268
+
269
+
270
  # Validate RYB inputs
271
  validation_result = validate_ryb_input(R, Y, B)
272
  if not validation_result["is_valid"]: