|
@@ -73,12 +73,12 @@ async def create_req(req:deco_request):
|
|
|
@app.post("/deco_request_detail")
|
|
|
async def create_req_detail(req:deco_request_detail):
|
|
|
|
|
|
- statement = 'SELECT * FROM deco_request WHERE email="'+deco_request_detail.email+'"'
|
|
|
+ statement = 'SELECT * FROM deco_request WHERE email="'+req.email+'"'
|
|
|
email_cnt = 0
|
|
|
for row in db.query(statement):
|
|
|
email_cnt = email_cnt + 1
|
|
|
|
|
|
- statement = 'SELECT * FROM deco_request WHERE phone="'+deco_request_detail.phone+'"'
|
|
|
+ statement = 'SELECT * FROM deco_request WHERE phone="'+req.phone+'"'
|
|
|
phone_cnt = 0
|
|
|
for row in db.query(statement):
|
|
|
phone_cnt = phone_cnt + 1
|