blezz-tech 1 месяц назад
Родитель
Сommit
a7b4ffa912
2 измененных файлов с 1 добавлено и 12 удалено
  1. 0 11
      handlers/core/utils.py
  2. 1 1
      handlers/handlers/open_access_request_pending.py

+ 0 - 11
handlers/core/utils.py

@@ -1,12 +1 @@
-from classes.Ticket import Ticket
-from typing import List
 
-def get_init_data(status: int) -> List[Ticket]:
-    return [
-        Ticket(0, "t", 0,0,0,0,0,0,0,0,0,"note", 1),
-        Ticket(1, "t", 0,1,0,0,0,0,0,0,0,"note", 2),
-        Ticket(2, "t", 0,2,0,0,0,0,0,0,0,"note", 1),
-        Ticket(3, "t", 0,3,0,0,0,0,0,0,0,"note", 2),
-        Ticket(4, "t", 0,4,0,0,0,0,0,0,0,"note", 1),
-        Ticket(5, "t", 0,5,0,0,0,0,0,0,0,"note", 1),
-    ]

+ 1 - 1
handlers/handlers/open_access_request_pending.py

@@ -79,7 +79,7 @@ def start_handler():
 
     logging.info(">>>>>  %s  |---| %s  <<<<<", JID, PASSWORD)
 
-    tickets: List[Ticket] = get_init_data(operating_status)
+    tickets: List[Ticket] = ticket_requester.all({"status": 320})
 
     with ThreadPoolExecutor() as executor:
         killer = SystemdKiller()