Revision fdc3d663 cron_notify_expired.py
b/cron_notify_expired.py | ||
---|---|---|
13 | 13 |
def notify_expired(): |
14 | 14 |
routes = Route.objects.all() |
15 | 15 |
for route in routes: |
16 |
if route.status not in ['EXPIRED', 'ADMININACTIVE', 'ERROR']: |
|
16 |
if route.status not in ['EXPIRED', 'ADMININACTIVE', 'INACTIVE', 'ERROR']:
|
|
17 | 17 |
expiration_days = (route.expires - datetime.date.today()).days |
18 | 18 |
if expiration_days < settings.EXPIRATION_NOTIFY_DAYS: |
19 | 19 |
try: |
Also available in: Unified diff