|
@@ -114,7 +114,7 @@ async def get_courses(tags:List[int]):
|
|
|
'WHERE tag.id IN'+tag_str
|
|
|
|
|
|
for row in db.query(statement):
|
|
|
- courses.append({'id':row['course_id'],'title':row['title'],'url':row['url'],'cover_img':row['cover_img']
|
|
|
+ courses.append({'id':row['course_id'],'title':row['title'],'url':row['url'],'cover_img':serverADDR+row['cover_img']
|
|
|
,'teacher_name':['teacher_name'],'price':row['price'],'price_discount':row['price_discount'],'profile':row['profile']
|
|
|
,'cover_img':row['cover_img'],'hours':row['hours'],'units':row['units']})
|
|
|
return courses
|