This commit is contained in:
Tommi S
2023-10-04 20:46:06 +03:00
parent 703bb91bfd
commit 8550a9a02b
+1 -4
View File
@@ -142,10 +142,7 @@ def submit(request, *args, **kwargs):
send_email(to=to_email, subject=subject, body=message, html=True) send_email(to=to_email, subject=subject, body=message, html=True)
logging.debug(f"Sent kaehmy email to recipient <{to_email}>") logging.debug(f"Sent kaehmy email to recipient <{to_email}>")
if kaehmybot_allowed: processHooks(message=f"Uusi New kaehmy! {name} -> {url}", eventType="kaehmy")
processHooks(
message=f"Uusi New kaehmy! {name} -> {url}", eventType="kaehmy"
)
else: else:
context = {"error": form.errors} context = {"error": form.errors}
return render(request, "kaehmy/error.html", context) return render(request, "kaehmy/error.html", context)