summaryrefslogtreecommitdiff
path: root/indoteknik_api/controllers/api_v1
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2022-11-03 17:14:58 +0700
committerIT Fixcomart <it@fixcomart.co.id>2022-11-03 17:14:58 +0700
commit8d204fc490ccd9dee49b86062f7063154887c0d9 (patch)
tree39b2082afd232514a127cd117e4c6711b1684f48 /indoteknik_api/controllers/api_v1
parent03dfa0271a0da453c83de83c73398dabb0e16fc7 (diff)
fix limit offset bug in manufacture api
Diffstat (limited to 'indoteknik_api/controllers/api_v1')
-rw-r--r--indoteknik_api/controllers/api_v1/manufacture.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_api/controllers/api_v1/manufacture.py b/indoteknik_api/controllers/api_v1/manufacture.py
index 3188f671..8dea6a4f 100644
--- a/indoteknik_api/controllers/api_v1/manufacture.py
+++ b/indoteknik_api/controllers/api_v1/manufacture.py
@@ -14,8 +14,8 @@ class Manufacture(controller.Controller):
query = []
- limit = int(kw.get('limit'))
- offset = int(kw.get('offset'))
+ limit = int(kw.get('limit', 0))
+ offset = int(kw.get('offset', 0))
level = kw.get('level')
if level: