ming 3 years ago
parent
commit
d9eedf2177
1 changed files with 1 additions and 1 deletions
  1. 1 1
      api/main.py

+ 1 - 1
api/main.py

@@ -130,7 +130,7 @@ async def make_video_slide(request: Request, response: Response, Authorize: Auth
     return templates.TemplateResponse("make_video_slide.html", {"request": request, "response": response})
 
 @app.post('/user_profile', response_class=HTMLResponse)
-async def user_profile(token_obj: modelsjwt_token_only):
+async def user_profile(token_obj: models.jwt_token_only):
     db = dataset.connect('mysql://choozmo:pAssw0rd@db.ptt.cx:3306/AI_anchor?charset=utf8mb4')
     
     user_obj = first(db.query('SELECT * FROM users where token ="'+token_obj.token+'"'))