From ac79ec27c2fb36fb42148878275e77c5e56b58f6 Mon Sep 17 00:00:00 2001 From: Rami Date: Thu, 4 Jan 2024 00:47:57 +0100 Subject: [PATCH] ignore the limit --- core/tasks.py | 56 +++++++++++++++++++++++++-------------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/core/tasks.py b/core/tasks.py index 0edd882d..e3b7a02d 100644 --- a/core/tasks.py +++ b/core/tasks.py @@ -37,35 +37,35 @@ def notify_to_complete_profile(): return # Send emails - # for p in profiles_to_email: - p = profiles_to_email[0] # GoDaddy limits :( - try: - activate(p.language) - except: - pass - subject = "Nice CV | " + _("Complete your profile") - body = _("Hello") - if p.fullname is not None: - body += " " + p.fullname - body += ",\n\n" - body += _("This is Rami from nicecv.online.") - body += "\n\n" - body += _("I am glad you want to improve the aesthetics of your CV.") - body += "\n\n" - body += _( - "I writing to you because it seems that you decided to abandon the process of creating a CV that will impress recruiters." - ) - body += " " - body += _( - "But if you want to complete your profile and download CV templates, visit the site:" - ) - body += "\n\n" - body += "https://nicecv.online" - body += "\n\n" - body += _("Best wishes, Rami.") + # p = profiles_to_email[0] # GoDaddy limits :( + for p in profiles_to_email: + try: + activate(p.language) + except: + pass + subject = "Nice CV | " + _("Complete your profile") + body = _("Hello") + if p.fullname is not None: + body += " " + p.fullname + body += ",\n\n" + body += _("This is Rami from nicecv.online.") + body += "\n\n" + body += _("I am glad you want to improve the aesthetics of your CV.") + body += "\n\n" + body += _( + "I writing to you because it seems that you decided to abandon the process of creating a CV that will impress recruiters." + ) + body += " " + body += _( + "But if you want to complete your profile and download CV templates, visit the site:" + ) + body += "\n\n" + body += "https://nicecv.online" + body += "\n\n" + body += _("Best wishes, Rami.") - m = EmailMessage(subject, body, settings.DEFAULT_FROM_EMAIL, [p.email]) - m.send(fail_silently=False) + m = EmailMessage(subject, body, settings.DEFAULT_FROM_EMAIL, [p.email]) + m.send(fail_silently=False) @db_periodic_task(crontab(hour="8", minute="15"))