Skip to content
Snippets Groups Projects
Commit 551779b9 authored by David Schmitz's avatar David Schmitz
Browse files

fix/check_sync_for_outofsync: apply check sync also for out-of-sync-rules

parent c2d90c78
No related branches found
No related tags found
No related merge requests found
......@@ -310,7 +310,7 @@ def notify_expired():
logger.info('Initializing expiration notification')
routes = Route.objects.all()
for route in routes:
if route.status not in ['EXPIRED', 'ADMININACTIVE', 'INACTIVE', 'INACTIVE_TODELETE', 'PENDING_TODELETE', 'ERROR']:
if route.status not in ['EXPIRED', 'ADMININACTIVE', 'INACTIVE', 'INACTIVE_TODELETE', 'PENDING_TODELETE', 'ERROR', 'OUTOFSYNC']:
expiration_days = (route.expires - datetime.date.today()).days
if expiration_days < settings.EXPIRATION_NOTIFY_DAYS:
try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment