From db598583aba83d6a9e30020d627859f32600533d Mon Sep 17 00:00:00 2001 From: abhigyanghosh30 Date: Thu, 4 Jan 2024 16:23:21 +0530 Subject: [PATCH] fix: remove rescheduling 30mins before exam start --- webapp/shop/cred/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webapp/shop/cred/views.py b/webapp/shop/cred/views.py index b5b059bcafd..8b83e8b43d2 100644 --- a/webapp/shop/cred/views.py +++ b/webapp/shop/cred/views.py @@ -255,7 +255,9 @@ def cred_your_exams(ua_contracts_api, trueability_api, **kwargs): } ) - elif state == "Scheduled": + elif state == "Scheduled" and starts_at > now + timedelta( + minutes=30 + ): actions.extend( [ {