fix: Filter notes with notify_on_login and not notify_on_every_login

This commit is contained in:
Suraj Shetty 2022-07-20 13:16:51 +05:30
parent d5bf9b60e0
commit 6bbd8fcb32

View file

@ -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(