Fix to prevent tickets being escalated too soon. Thanks to Walter Doekes for the patch. (Google Code #148; Github #8)

This commit is contained in:
Ross Poulton 2011-01-29 05:52:24 +00:00
parent e49ba97b8c
commit 46d8e6284e

View File

@ -92,7 +92,7 @@ def escalate_tickets(queues, verbose):
| Q(on_hold=False)
).filter(
Q(last_escalation__lte=req_last_escl_date)
| Q(last_escalation__isnull=True)
| Q(last_escalation__isnull=True, created__lte=req_last_escl_date)
):
t.last_escalation = datetime.now()