Fix: session clearing query on postgres
`user` is a postgres keyword. To avoid conflict, use table_name.user
This commit is contained in:
parent
dc539ff21c
commit
746c55624b
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue