|
@@ -423,9 +423,6 @@ async def history_input_old(request: Request, Authorize: AuthJWT = Depends()):
|
|
|
|
|
|
@app.post("/history_input")
|
|
|
async def history_input(token: str = Depends(oauth2_scheme)):
|
|
|
- Authorize.jwt_required()
|
|
|
- current_user = Authorize.get_jwt_subject()
|
|
|
-
|
|
|
db = dataset.connect('mysql://choozmo:pAssw0rd@db.ptt.cx:3306/AI_anchor?charset=utf8mb4')
|
|
|
user_id = get_user_id(token)
|
|
|
user_obj = first(db.query('SELECT * FROM users where id ="'+str(user_id)+'"'))
|