[useradmin] Fix last activity update for notebook/api/check_status
@@ -91,7 +91,10 @@ class LastActivityMiddleware(object):
logout = True
# Save last activity for user except when polling
- if not (request.path.strip('/') == 'jobbrowser/api/jobs') and not (request.path.strip('/') == 'jobbrowser/jobs' and request.POST.get('format') == 'json') and not (request.path == '/desktop/debug/is_idle'):
+ if not (request.path.strip('/') == 'notebook/api/check_status') \
+ and not (request.path.strip('/') == 'jobbrowser/api/jobs') \
+ and not (request.path.strip('/') == 'jobbrowser/jobs' and request.POST.get('format') == 'json') \
+ and not (request.path.strip('/') == 'desktop/debug/is_idle'):
try:
profile.last_activity = datetime.now()
profile.save()
