浏览代码

HUE-5476 [core] Fix TTL is_idle middleware check

Enrico Berti 9 年之前
父节点
当前提交
ef2d74c3e9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      apps/useradmin/src/useradmin/middleware.py

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

@@ -84,7 +84,7 @@ class LastActivityMiddleware(object):
       logout = True
 
     # Save last activity for user except when polling
-    if not (request.path.strip('/') == 'jobbrowser' and request.GET.get('format') == 'json') and not (request.path == '/desktop/debug/is_idle'):
+    if 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()