Browse Source

Merge branch 'master' of http://git.choozmo.com:3000/choozmo/HHH_Course into master

jeter20131220 3 năm trước cách đây
mục cha
commit
de246cf340
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      api/main.py

+ 2 - 2
api/main.py

@@ -28,7 +28,7 @@ app.add_middleware(
     allow_methods=["*"],
     allow_headers=["*"],
 )
-db = dataset.connect('mysql://choozmo:pAssw0rd@db.ptt.cx:3306/hhh?charset=utf8mb4')
+
 
 
 
@@ -47,7 +47,7 @@ class client_info(BaseModel):
 
 @app.post("/add_client_info")
 async def add_client_info(ci:client_info):
-    
+    db = dataset.connect('mysql://choozmo:pAssw0rd@db.ptt.cx:3306/hhh?charset=utf8mb4')
     
     statement = 'SELECT * FROM client_info WHERE email="'+ci.email+'"'
     email_cnt = 0