Closed sheagcraig closed 5 years ago
Describe the bug Sal UI dies trying to compare 'never' to a float epoch time.
Traceback:
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _legacy_get_response
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
File "/usr/local/lib/python3.6/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
File "/home/docker/sal/server/views.py" in index
File "/home/docker/sal/server/utils.py" in check_version
Exception Type: TypeError at / Exception Value: '>' not supported between instances of 'float' and 'str'
Example values: current_time: 1544108664.4966092 next_notify_date: 'never'
1544108664.4966092
'never'
To Reproduce Steps to reproduce the behavior:
Expected behavior You're not nagged again until the next version and the site works correctly.
Server (please complete the following information):
Fixed by #305
Describe the bug Sal UI dies trying to compare 'never' to a float epoch time.
Traceback:
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _legacy_get_response
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
File "/usr/local/lib/python3.6/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
File "/home/docker/sal/server/views.py" in index
File "/home/docker/sal/server/utils.py" in check_version
Exception Type: TypeError at / Exception Value: '>' not supported between instances of 'float' and 'str'
Example values: current_time:
1544108664.4966092
next_notify_date:'never'
To Reproduce Steps to reproduce the behavior:
Expected behavior You're not nagged again until the next version and the site works correctly.
Server (please complete the following information):