From aeadcb132251293dca38da79faa01f0803bbe438 Mon Sep 17 00:00:00 2001 From: phot0n Date: Wed, 2 Feb 2022 21:52:07 +0530 Subject: [PATCH] chore(notifications.py): remove unused get_unseen_likes --- frappe/core/notifications.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/frappe/core/notifications.py b/frappe/core/notifications.py index 414563e4c5..5f41f217f0 100644 --- a/frappe/core/notifications.py +++ b/frappe/core/notifications.py @@ -39,18 +39,3 @@ def get_todays_events(as_list=False): today = nowdate() events = get_events(today, today) return events if as_list else len(events) - -def get_unseen_likes(): - """Returns count of unseen likes""" - - comment_doctype = DocType("Comment") - return frappe.db.count(comment_doctype, - filters=( - (comment_doctype.comment_type == "Like") - & (comment_doctype.modified >= Now() - Interval(years=1)) - & (comment_doctype.owner.notnull()) - & (comment_doctype.owner != frappe.session.user) - & (comment_doctype.reference_owner == frappe.session.user) - & (comment_doctype.seen == 0) - ) - )