Skip to content

Commit

Permalink
cast current time to int to fix integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Niels Hamers committed May 12, 2021
1 parent 8ea694a commit 4cead6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openeo_driver/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ def secure_token(filename, expires) -> str:

def expiration_timestamp() -> Union[int, None]:
expiration = current_app.config.get('SIGNED_URL_EXPIRATION')
return time.time() + int(expiration) if expiration else None
return int(time.time()) + int(expiration) if expiration else None

def download_url(filename) -> str:
if smart_bool(current_app.config.get('SIGNED_URL')):
Expand Down

0 comments on commit 4cead6e

Please sign in to comment.