Your Name 3 jaren geleden
bovenliggende
commit
e9dc3ac118
1 gewijzigde bestanden met toevoegingen van 4 en 3 verwijderingen
  1. 4 3
      step_question/apis/main.py

+ 4 - 3
step_question/apis/main.py

@@ -143,7 +143,10 @@ async def line_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_line_after.html", status_code=HTTP_302_FOUND)
 #    return result
 
@@ -155,8 +158,6 @@ app.mount("/a1", StaticFiles(directory="static"), name="static")
 async def redirect():
 #    url = app.url_path_for("/a1/index.html")
     response = RedirectResponse(url='/a1/index.html')
-    x = threading.Thread(target=hhh_send_mail, args=('jared@choozmo.com',))
-    x.start()
     return response
 
 #@app.get("/a1", response_class=HTMLResponse)