Your Name 3 år sedan
förälder
incheckning
150f594d16
1 ändrade filer med 4 tillägg och 1 borttagningar
  1. 4 1
      step_question/apis/main.py

+ 4 - 1
step_question/apis/main.py

@@ -120,7 +120,10 @@ async def submit(request: Request):
     }
     print(result)
     get_db().insert(result)
-    mail_to_user(email)
+#    mail_to_user(email)
+    x = threading.Thread(target=hhh_send_mail, args=(email,))
+    x.start()
+
     return RedirectResponse(url="/a1/index_complete_msg.html", status_code=HTTP_302_FOUND)
 #    return result