Browse Source

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

huaisianhuang 3 years ago
parent
commit
5391dc6f6c
1 changed files with 0 additions and 3 deletions
  1. 0 3
      api/main.py

+ 0 - 3
api/main.py

@@ -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)+'"'))