Pārlūkot izejas kodu

Merge branch 'master' of http://git.choozmo.com:3000/choozmo/OpenTalk into master

jeter20131220 3 gadi atpakaļ
vecāks
revīzija
1b6d911b58
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      api/main.py

+ 2 - 2
api/main.py

@@ -121,7 +121,7 @@ async def get_courses(cids:List[int]):
     for row in db.query(statement):
         courses.append({'id':row['id'],'title':row['title'],'url':row['url']
         ,'teacher_name':['teacher_name'],'price':row['price'],'price_discount':row['price_discount'],'profile':row['profile']
-        ,'cover_img':'https://'+serverADDR + row['cover_img'],'hours':row['hours'],'units':row['units']})
+        ,'cover_img':'https://'+serverADDR + row['cover_img'],'hours':row['hours'],'units':row['units'],'clicks':row['clicks']})
     return courses
 
 
@@ -143,7 +143,7 @@ async def get_courses(tags:List[int]):
     for row in db.query(statement):
         courses.append({'id':row['course_id'],'title':row['title'],'url':row['url']
         ,'teacher_name':['teacher_name'],'price':row['price'],'price_discount':row['price_discount'],'profile':row['profile']
-        ,'cover_img':'https://'+serverADDR + row['cover_img'],'hours':row['hours'],'units':row['units']})
+        ,'cover_img':'https://'+serverADDR + row['cover_img'],'hours':row['hours'],'units':row['units'],'clicks':row['clicks']})
     return courses
 
 @app.post("/create_courses")