|
@@ -149,7 +149,7 @@ async def user_profile(token: str = Depends(oauth2_scheme)):
|
|
statement = 'SELECT * FROM history_input WHERE user_id='+str(user_obj['id'])
|
|
statement = 'SELECT * FROM history_input WHERE user_id='+str(user_obj['id'])
|
|
for row in db.query(statement):
|
|
for row in db.query(statement):
|
|
video_info_list.append({'id':row['id'],'title':row['name'],'duration':row['duration'],'url':row['url']})
|
|
video_info_list.append({'id':row['id'],'title':row['name'],'duration':row['duration'],'url':row['url']})
|
|
- dic_return = {'user_info':{'userName':current_user,'email':user_obj['email'],'video_num':video_num,'total_sec':total_sec,'left_sec':user_obj['left_time']},'video_info':video_info_list}
|
|
|
|
|
|
+ dic_return = {'user_info':{'userName':user_obj['username'],'email':user_obj['email'],'video_num':video_num,'total_sec':total_sec,'left_sec':user_obj['left_time']},'video_info':video_info_list}
|
|
str_return = json.dumps(dic_return)
|
|
str_return = json.dumps(dic_return)
|
|
return str_return
|
|
return str_return
|
|
|
|
|