summaryrefslogtreecommitdiff
path: root/indoteknik_api/controllers/api_v1/content.py
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-01-06 14:51:18 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-01-06 14:51:18 +0700
commit20b3a41a6320d2680ad521e3552210e563b06948 (patch)
tree03fa931e150d53cf5457ba0016ced76fa294891b /indoteknik_api/controllers/api_v1/content.py
parent4ec4ac493afa31409754d93c0640d48774c9ff9a (diff)
bug fix api video content
Diffstat (limited to 'indoteknik_api/controllers/api_v1/content.py')
-rw-r--r--indoteknik_api/controllers/api_v1/content.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/indoteknik_api/controllers/api_v1/content.py b/indoteknik_api/controllers/api_v1/content.py
index 7d0bd762..1b3f5dc2 100644
--- a/indoteknik_api/controllers/api_v1/content.py
+++ b/indoteknik_api/controllers/api_v1/content.py
@@ -17,11 +17,10 @@ class WebsiteContent(controller.Controller):
for video in videos:
data.append({
'id': video.id,
+ 'channel_name': video.channel_id.name,
'sequence': video.sequence,
'slide_type': video.slide_type,
'name': video.name,
- 'url': video.url,
- 'channel_id': video.channel_id,
- 'channel_name': video.channel_id.name
+ 'url': video.url
})
return self.response(data)