From 8d204fc490ccd9dee49b86062f7063154887c0d9 Mon Sep 17 00:00:00 2001 From: IT Fixcomart Date: Thu, 3 Nov 2022 17:14:58 +0700 Subject: fix limit offset bug in manufacture api --- indoteknik_api/controllers/api_v1/manufacture.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'indoteknik_api/controllers/api_v1') 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: -- cgit v1.2.3