|
@@ -149,7 +149,7 @@ async def user_profile(token: str = Depends(oauth2_scheme)):
|
|
|
video_info_list = []
|
|
|
statement = 'SELECT * FROM history_input WHERE user_id='+str(user_obj['id'])
|
|
|
for row in db.query(statement):
|
|
|
- video_info_list.append({'id':row['id'],'title':row['name'],'duration':row['duration'],'url':row['link'],'time_stamp':row['timestamp']})
|
|
|
+ video_info_list.append({'id':row['id'],'title':row['name'],'duration':row['duration'],'url':row['link'],'time_stamp':row['timestamp'].strftime("%m/%d/%Y, %H:%M:%S")})
|
|
|
dic_return = {'user_info':{'id':user_id,'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)
|
|
|
return str_return
|