fix: Filter notes with notify_on_login and not notify_on_every_login
This commit is contained in:
parent
d5bf9b60e0
commit
6bbd8fcb32
1 changed files with 1 additions and 1 deletions
|
|
@ -328,7 +328,7 @@ def get_unseen_notes():
|
|||
frappe.qb.from_(note)
|
||||
.select(note.name, note.title, note.content, note.notify_on_every_login)
|
||||
.where(
|
||||
(note.notify_on_every_login == 1)
|
||||
(note.notify_on_login == 1)
|
||||
& (note.expire_notification_on > frappe.utils.now())
|
||||
& (
|
||||
ParameterizedValueWrapper(frappe.session.user).notin(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue