fix: consider Not Sent and Sending status while pulling daily e… (#9496)
Co-authored-by: Saurabh <saurabh6790@gmail.com>
This commit is contained in:
parent
14fef7d01e
commit
b1d42e1302
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue