Browse Source

add .env.example

blezz-tech 1 week ago
parent
commit
cf4d0316d3
2 changed files with 30 additions and 3 deletions
  1. 25 0
      handlers/.env.example
  2. 5 3
      handlers/handlers/open_access_request_pending.py

+ 25 - 0
handlers/.env.example

@@ -0,0 +1,25 @@
+open_basic_bot_key=
+status_changer_key=
+open_access_request_accepted_key=
+open_access_request_pending_key=
+open_neg_request_accepted_key=
+open_neg_request_pending_key=
+open_service_request_accepted_key=
+open_service_request_assigned_key=
+open_service_request_booked_key=
+open_service_request_booked_v2_key=
+open_service_request_closed_key=
+open_service_request_declined_key=
+open_service_request_done_key=
+open_service_request_forcemajeure_key=
+open_service_request_pending_key=
+open_service_request_preforcemajeure_key=
+open_service_request_prestart_key=
+open_service_request_process_key=
+open_st_request_assigned_key=
+open_st_request_done_key=
+open_st_request_dublicate_key=
+open_st_request_in_process_key=
+open_st_request_new_key=
+open_st_request_reopened_key=
+open_st_request_wontfix_key=

+ 5 - 3
handlers/handlers/open_access_request_pending.py

@@ -12,7 +12,7 @@ from typing import List
 from concurrent.futures import ThreadPoolExecutor
 from core.SystemdKiller import SystemdKiller
 from core.utils import get_init_data
-
+from jsonAndRequest import requestGetListUser
 botname = "open_access_request_pending"
 operating_status = 320
 
@@ -117,8 +117,10 @@ def processing(ticket: Ticket) -> None:
 
     message = f"Тикет {ticket.id} ожидает решения"
 
-    send_notification_to_admins(ticket, message)
-    bot.send_message(ticket.assigned_to, message)
+    print(requestGetListUser())
+
+    # send_notification_to_admins(ticket, message)
+    # bot.send_message(ticket.assigned_to, message)
 
     logging.debug(f"Конец обработки тикета {ticket.id}")