meg-huggingface
commited on
Commit
·
7f85059
1
Parent(s):
7526aba
Fixing timing bug
Browse files
src/backend/manage_requests.py
CHANGED
@@ -110,7 +110,7 @@ def check_set_to_fail(eval_request: EvalRequest):
|
|
110 |
time_format = "%Y-%m-%dT%H:%M:%SZ"
|
111 |
submitted_time_str = data["submitted_time"]
|
112 |
submitted_time_naive = datetime.strptime(submitted_time_str, time_format)
|
113 |
-
current_time = datetime.now(timezone.utc)
|
114 |
submitted_time = submitted_time_naive.replace(tzinfo=current_time.tzinfo)
|
115 |
difference = current_time - submitted_time
|
116 |
diff_seconds = difference.total_seconds()
|
|
|
110 |
time_format = "%Y-%m-%dT%H:%M:%SZ"
|
111 |
submitted_time_str = data["submitted_time"]
|
112 |
submitted_time_naive = datetime.strptime(submitted_time_str, time_format)
|
113 |
+
current_time = datetime.now(timezone.utc)#.strftime("%Y-%m-%dT%H:%M:%SZ")
|
114 |
submitted_time = submitted_time_naive.replace(tzinfo=current_time.tzinfo)
|
115 |
difference = current_time - submitted_time
|
116 |
diff_seconds = difference.total_seconds()
|