Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Prevent task page from reloading if it is not checked out, time_left …

…is None
  • Loading branch information...
commit 5c391d030b96d7e0a3b95c91c31079c959b6df71 1 parent cecae73
@pgiraud pgiraud authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  OSMTM/views/tasks.py
View
2  OSMTM/views/tasks.py
@@ -36,7 +36,7 @@ def task(request):
polygon=tile.to_polygon()
username = authenticated_userid(request)
user = session.query(User).get(username)
- time_left = 0
+ time_left = 'null'
if tile.checkout:
time_left = (tile.checkout - (datetime.now() - EXPIRATION_DURATION)) \
.seconds
Please sign in to comment.
Something went wrong with that request. Please try again.