fix: correct indentation for auto-approval logic
This commit is contained in:
+1
-2
@@ -891,7 +891,6 @@ def process_ticket_logic(req_id):
|
||||
allowed_subcats = APPROVAL_CATEGORIES[cat_name]
|
||||
if "*" in allowed_subcats or subcat_name in allowed_subcats:
|
||||
is_cat_ok = True
|
||||
continue
|
||||
# Проверка: отдел пользователя в списке исключений
|
||||
is_excluded = False
|
||||
if user_department and APPROVAL_EXCLUDED_DEPARTMENTS:
|
||||
@@ -904,9 +903,9 @@ def process_ticket_logic(req_id):
|
||||
t_log(" ⏭ Пропуск: пользователь в исключённом отделе.")
|
||||
continue
|
||||
t_log(f"✔ Условия совпали. Запуск процесса согласования для {manager_email}...")
|
||||
if is_city_ok and (is_group_ok or is_cat_ok):
|
||||
if manager_email:
|
||||
ai_was_used = True
|
||||
if is_city_ok and (is_group_ok or is_cat_ok):
|
||||
|
||||
share_success, share_log = share_ticket_for_approval(req_id, manager_email)
|
||||
t_log(share_log)
|
||||
|
||||
Reference in New Issue
Block a user