From b1d42e13025bd9972a7cf85fe9a19847436699f2 Mon Sep 17 00:00:00 2001 From: sahil28297 <37302950+sahil28297@users.noreply.github.com> Date: Tue, 18 Feb 2020 15:43:16 +0530 Subject: [PATCH] =?UTF-8?q?fix:=20consider=20Not=20Sent=20and=20Sending=20?= =?UTF-8?q?status=20while=20pulling=20daily=20e=E2=80=A6=20(#9496)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Saurabh --- frappe/email/queue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/email/queue.py b/frappe/email/queue.py index 62b0d9ea3f..b35f5944b2 100755 --- a/frappe/email/queue.py +++ b/frappe/email/queue.py @@ -256,7 +256,7 @@ def get_emails_sent_this_month(): def get_emails_sent_today(): return frappe.db.sql("""SELECT COUNT(`name`) FROM `tabEmail Queue` WHERE - `status`='Sent' AND `creation` > (NOW() - INTERVAL '24' HOUR)""")[0][0] + `status` in ('Sent', 'Not Sent', 'Sending') AND `creation` > (NOW() - INTERVAL '24' HOUR)""")[0][0] def get_unsubscribe_message(unsubscribe_message, expose_recipients): if unsubscribe_message: