Browse Source

PR715 [useradmin] Fix last activity update for jobbrowser/api/jobs requests (#715)

(cherry picked from commit aec4392dcd25186caaffaf5e724a47af80715fc4)
aig 7 years ago
parent
commit
9726b5f04e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apps/useradmin/src/useradmin/middleware.py

+ 1 - 1
apps/useradmin/src/useradmin/middleware.py

@@ -91,7 +91,7 @@ class LastActivityMiddleware(object):
       logout = True
 
     # Save last activity for user except when polling
-    if 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('/') == 'jobbrowser/api/jobs') and not (request.path.strip('/') == 'jobbrowser/jobs' and request.POST.get('format') == 'json') and not (request.path == '/desktop/debug/is_idle'):
       try:
         profile.last_activity = datetime.now()
         profile.save()