mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 07:54:46 +00:00
Update email_digest.py (#15144)
This commit is contained in:
@@ -135,7 +135,7 @@ class EmailDigest(Document):
|
|||||||
notifications = frappe.desk.notifications.get_notifications()
|
notifications = frappe.desk.notifications.get_notifications()
|
||||||
|
|
||||||
notifications = sorted(notifications.get("open_count_doctype", {}).items(),
|
notifications = sorted(notifications.get("open_count_doctype", {}).items(),
|
||||||
lambda a, b: 1 if a[1] < b[1] else -1)
|
key=lambda a: a[1])
|
||||||
|
|
||||||
notifications = [{"key": n[0], "value": n[1],
|
notifications = [{"key": n[0], "value": n[1],
|
||||||
"link": get_url_to_list(n[0])} for n in notifications if n[1]]
|
"link": get_url_to_list(n[0])} for n in notifications if n[1]]
|
||||||
|
|||||||
Reference in New Issue
Block a user