mirror of
https://github.com/netbox-community/netbox.git
synced 2026-02-04 22:36:24 -06:00
Wait until job1 is scheduled before enqueueing job2
This commit is contained in:
@@ -39,7 +39,7 @@ class OptionalLimitOffsetPagination(LimitOffsetPagination):
|
||||
def get_limit(self, request):
|
||||
if self.limit_query_param:
|
||||
try:
|
||||
limit = int(request.query_params[self.limit_query_param])
|
||||
limit = int(request.query_params.get(self.limit_query_param, 0))
|
||||
if limit < 0:
|
||||
raise ValueError()
|
||||
# Enforce maximum page size, if defined
|
||||
|
||||
Reference in New Issue
Block a user