cast notification timeout to int

This commit is contained in:
Serghei Mihai 2015-11-27 10:54:07 +01:00
parent 0f90062fc3
commit b80d118872
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ DEFAULT_FROM_EMAIL = os.environ.get('DEFAULT_FROM_EMAIL', 'ne-pas-repondre@orlea
INVOICES_DIR = os.environ.get('INVOICES_DIR', os.path.dirname(__file__))
INVOICES_LOCATION_PATTERN = os.path.join(INVOICES_DIR, 'facture_{invoice_id}.pdf')
INVOICES_NOTIFICATION_TIMEOUT = os.environ.get('INVOICES_NOTIFICATION_TIMEOUT', 10) # in days
INVOICES_NOTIFICATION_TIMEOUT = int(os.environ.get('INVOICES_NOTIFICATION_TIMEOUT', 10)) # in days
IDP_URL = os.environ.get('IDP_URL', '')
PORTAIL_CITOYEN_URL = os.environ.get('PORTAIL_CITOYEN_URL', '')