Browse Source

Merge pull request #13257 from josejibin/fix/session-clearing-postgres

fix: session clearing query on postgres
version-14
Suraj Shetty 4 years ago
committed by GitHub
parent
commit
b5cb40aa91
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frappe/sessions.py

+ 1
- 1
frappe/sessions.py View File

@@ -70,7 +70,7 @@ def get_sessions_to_clear(user=None, keep_current=False, device=None):

return frappe.db.sql_list("""
SELECT `sid` FROM `tabSessions`
WHERE user=%(user)s
WHERE `tabSessions`.user=%(user)s
AND device in %(device)s
{condition}
ORDER BY `lastupdate` DESC


Loading…
Cancel
Save