markup: special email for no matched products
This commit is contained in:
@ -31,6 +31,16 @@ Thanks,
|
||||
ProCatalog Markup Bot
|
||||
"""
|
||||
|
||||
body_no_matches = """Hi,
|
||||
|
||||
I couldn't find any products marked in your pdf. Make sure you're
|
||||
using a ProCatalog pdf and that you've circled or otherwise scribbled
|
||||
over some material images or SKUs before submitting.
|
||||
|
||||
Thanks,
|
||||
ProCatalog Markup Bot
|
||||
"""
|
||||
|
||||
|
||||
def reply(frm, subj, xls_path, pdf_path):
|
||||
msg = EmailMessage()
|
||||
@ -57,6 +67,12 @@ def reply_missing(frm, subj):
|
||||
send(frm, subj, msg)
|
||||
|
||||
|
||||
def reply_no_matches(frm, subj):
|
||||
msg = EmailMessage()
|
||||
msg.set_content(body_no_matches)
|
||||
send(frm, subj, msg)
|
||||
|
||||
|
||||
def send(frm, subj, msg):
|
||||
msg['From'] = 'Keen ProCatalog Markup Bot <support@procatalog.io>'
|
||||
msg['To'] = frm
|
||||
|
||||
Reference in New Issue
Block a user