|
@@ -56,15 +56,15 @@ def process_in_progress_ticket(ticket_list, start_time):
|
|
|
"last_date_reminder": start_time
|
|
|
}
|
|
|
|
|
|
- if IS_INFINITE_REMINDER or tickets[ticket.id]['reminders'] < MAX_REMINDERS:
|
|
|
- if (start_time - tickets[ticket.id]["last_date_reminder"]) > DEFAULT_REMINDER_INTERVAL:
|
|
|
+ if (start_time - tickets[ticket.id]["last_date_reminder"]) > DEFAULT_REMINDER_INTERVAL:
|
|
|
+ if IS_INFINITE_REMINDER or tickets[ticket.id]['reminders'] < MAX_REMINDERS:
|
|
|
send_reminder("st_request_in_process@ej.sharix-app.org", ticket)
|
|
|
-
|
|
|
- tickets[ticket.id]["reminders"] += 1
|
|
|
- tickets[ticket.id]["last_date_reminder"] += start_time
|
|
|
- elif not IS_INFINITE_REMINDER and tickets[ticket.id]['reminders'] >= MAX_REMINDERS:
|
|
|
- del tickets[ticket.id]
|
|
|
- # Функция смены статуса на WONTFIX
|
|
|
+ else:
|
|
|
+ del tickets[ticket.id]
|
|
|
+ # Функция смены статуса на WONTFIX
|
|
|
+
|
|
|
+ tickets[ticket.id]["reminders"] += 1
|
|
|
+ tickets[ticket.id]["last_date_reminder"] += start_time
|
|
|
|
|
|
|
|
|
def status_changer():
|