summaryrefslogtreecommitdiff
path: root/indoteknik_api/controllers/api_v1
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2025-03-19 10:33:29 +0700
committerit-fixcomart <it@fixcomart.co.id>2025-03-19 10:33:29 +0700
commit8a23309d00183fb66f1e8c57f0087439fdb999ec (patch)
tree73eb88d07a3968c8ebbd5b640ccdb9f37abde813 /indoteknik_api/controllers/api_v1
parent34d02a015c9789b91838d39c08e9b380e3b1470a (diff)
<iman> update renca banner
Diffstat (limited to 'indoteknik_api/controllers/api_v1')
-rw-r--r--indoteknik_api/controllers/api_v1/banner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_api/controllers/api_v1/banner.py b/indoteknik_api/controllers/api_v1/banner.py
index aea8f0d9..64a6167b 100644
--- a/indoteknik_api/controllers/api_v1/banner.py
+++ b/indoteknik_api/controllers/api_v1/banner.py
@@ -45,7 +45,7 @@ class Banner(controller.Controller):
if not keyword:
banners = request.env['x_banner.banner'].search(query, limit=limit, offset=offset, order=order)
else:
- banners = banner_kumpulan if banner_kumpulan else request.env['x_banner.banner'].search(query, limit=limit, offset=offset, order=order)
+ banners = banner_kumpulan if len(banner_kumpulan) > 0 else request.env['x_banner.banner'].search(query, limit=limit, offset=offset, order=order)
week_number = self.get_week_number_of_current_month()