mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 03:56:53 -06:00
Revert original min()
This commit is contained in:
parent
647c7c9579
commit
020386f8a1
@ -47,7 +47,7 @@ class OptionalLimitOffsetPagination(LimitOffsetPagination):
|
|||||||
raise ValueError()
|
raise ValueError()
|
||||||
# Enforce maximum page size, if defined
|
# Enforce maximum page size, if defined
|
||||||
if MAX_PAGE_SIZE:
|
if MAX_PAGE_SIZE:
|
||||||
return min(self.default_limit, MAX_PAGE_SIZE) if limit == 0 else min(limit, MAX_PAGE_SIZE)
|
return MAX_PAGE_SIZE if limit == 0 else min(limit, MAX_PAGE_SIZE)
|
||||||
return limit
|
return limit
|
||||||
except (KeyError, ValueError):
|
except (KeyError, ValueError):
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user