Your Name há 3 anos atrás
pai
commit
150f594d16
1 ficheiros alterados com 4 adições e 1 exclusões
  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