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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
frappe/sessions.py
|
|
@@ -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 |
|
|
|