diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2022-11-03 17:14:58 +0700 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2022-11-03 17:14:58 +0700 |
| commit | 8d204fc490ccd9dee49b86062f7063154887c0d9 (patch) | |
| tree | 39b2082afd232514a127cd117e4c6711b1684f48 /indoteknik_api/controllers/api_v1 | |
| parent | 03dfa0271a0da453c83de83c73398dabb0e16fc7 (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.py | 4 |
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: |
