bugdantic 0.2.1__tar.gz → 0.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {bugdantic-0.2.1 → bugdantic-0.2.2}/PKG-INFO +1 -1
- {bugdantic-0.2.1 → bugdantic-0.2.2}/bugdantic/bugzilla.py +5 -2
- {bugdantic-0.2.1 → bugdantic-0.2.2}/bugdantic.egg-info/PKG-INFO +1 -1
- {bugdantic-0.2.1 → bugdantic-0.2.2}/pyproject.toml +1 -1
- {bugdantic-0.2.1 → bugdantic-0.2.2}/LICENSE +0 -0
- {bugdantic-0.2.1 → bugdantic-0.2.2}/README.md +0 -0
- {bugdantic-0.2.1 → bugdantic-0.2.2}/bugdantic/__init__.py +0 -0
- {bugdantic-0.2.1 → bugdantic-0.2.2}/bugdantic/py.typed +0 -0
- {bugdantic-0.2.1 → bugdantic-0.2.2}/bugdantic.egg-info/SOURCES.txt +0 -0
- {bugdantic-0.2.1 → bugdantic-0.2.2}/bugdantic.egg-info/dependency_links.txt +0 -0
- {bugdantic-0.2.1 → bugdantic-0.2.2}/bugdantic.egg-info/requires.txt +0 -0
- {bugdantic-0.2.1 → bugdantic-0.2.2}/bugdantic.egg-info/top_level.txt +0 -0
- {bugdantic-0.2.1 → bugdantic-0.2.2}/setup.cfg +0 -0
- {bugdantic-0.2.1 → bugdantic-0.2.2}/test/test_bugzilla.py +0 -0
|
@@ -389,11 +389,13 @@ class Bugzilla:
|
|
|
389
389
|
|
|
390
390
|
def search(
|
|
391
391
|
self,
|
|
392
|
-
query:
|
|
392
|
+
query: QueryParams,
|
|
393
393
|
include_fields: Optional[list[str]] = None,
|
|
394
394
|
page_size: int = 100,
|
|
395
395
|
) -> list[Bug]:
|
|
396
|
+
query = {**query}
|
|
396
397
|
paginate = False
|
|
398
|
+
offset = 0
|
|
397
399
|
if "limit" not in query and "offset" not in query and page_size > 0:
|
|
398
400
|
query["limit"] = str(page_size)
|
|
399
401
|
query["offset"] = "0"
|
|
@@ -417,7 +419,8 @@ class Bugzilla:
|
|
|
417
419
|
)
|
|
418
420
|
raise BugzillaError("Response contained neither bugs nor faults fields")
|
|
419
421
|
|
|
420
|
-
|
|
422
|
+
offset += page_size
|
|
423
|
+
query["offset"] = str(offset)
|
|
421
424
|
|
|
422
425
|
return results
|
|
423
426
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|