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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bugdantic
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: Bugzilla client based on pydantic
5
5
  Author-email: James Graham <james@hoppipolla.co.uk>
6
6
  Classifier: License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
@@ -389,11 +389,13 @@ class Bugzilla:
389
389
 
390
390
  def search(
391
391
  self,
392
- query: dict[str, str],
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
- query["offset"] = str(int(query["offset"]) + page_size)
422
+ offset += page_size
423
+ query["offset"] = str(offset)
421
424
 
422
425
  return results
423
426
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bugdantic
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: Bugzilla client based on pydantic
5
5
  Author-email: James Graham <james@hoppipolla.co.uk>
6
6
  Classifier: License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
@@ -5,7 +5,7 @@ authors = [
5
5
  {name = "James Graham", email = "james@hoppipolla.co.uk"}
6
6
  ]
7
7
 
8
- version = "0.2.1"
8
+ version = "0.2.2"
9
9
  requires-python = ">=3.11"
10
10
  classifiers = [
11
11
  "License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
File without changes
File without changes
File without changes
File without changes