Parcourir la source

change serverADDR

ming il y a 3 ans
Parent
commit
68e5035be9
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      api/main.py

+ 1 - 1
api/main.py

@@ -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