Convert max_age to int b/c timedelta.total_seconds() is a float

This commit is contained in:
Alexander Todorov 2018-02-13 14:40:01 +02:00 committed by Brian C. Lane
parent 3dd5612732
commit 7f7295e3b0
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ def crossdomain(origin, methods=None, headers=None,
if not isinstance(origin, list):
origin = [origin]
if isinstance(max_age, timedelta):
max_age = max_age.total_seconds()
max_age = int(max_age.total_seconds())
def get_methods():
if methods is not None: