refactor: Unnecessary/illogical check
because cint(False) gives 0
This commit is contained in:
parent
888aa8ad84
commit
f92c5d9898
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ class DatabaseQuery(object):
|
|||
self.docstatus = docstatus or []
|
||||
self.group_by = group_by
|
||||
self.order_by = order_by
|
||||
self.limit_start = 0 if (limit_start is False) else cint(limit_start)
|
||||
self.limit_start = cint(limit_start)
|
||||
self.limit_page_length = cint(limit_page_length) if limit_page_length else None
|
||||
self.with_childnames = with_childnames
|
||||
self.debug = debug
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue