Revision 7c4bc8de flowspec/models.py
b/flowspec/models.py | ||
---|---|---|
318 | 318 |
if self.status not in ['EXPIRED', 'ADMININACTIVE', 'ERROR']: |
319 | 319 |
expiration_days = (self.expires - datetime.date.today()).days |
320 | 320 |
if expiration_days < settings.EXPIRATION_NOTIFY_DAYS: |
321 |
return expiration_days |
|
321 |
return "%s" %expiration_days
|
|
322 | 322 |
else: |
323 | 323 |
return False |
324 | 324 |
else: |
Also available in: Unified diff