فهرست منبع

fix interval_count condition

blezz-tech 1 ماه پیش
والد
کامیت
94ce682872
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      handlers/handlers/open_access_request_pending.py

+ 1 - 1
handlers/handlers/open_access_request_pending.py

@@ -61,7 +61,7 @@ def start_handler():
         else:
             for ticket in tickets:
                 ticket['interval_count'] -= 1
-                if ticket <= 0:
+                if ticket['interval_count'] <= 0:
                     processing_interval_unlimited(ticket)
                 else:
                     processing(ticket)