shopware-api-client 1.0.109__py3-none-any.whl → 1.0.110__py3-none-any.whl

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.

Potentially problematic release.


This version of shopware-api-client might be problematic. Click here for more details.

@@ -167,17 +167,17 @@ class ClientBase:
167
167
  def parse_retry_after(self, headers: httpx.Headers) -> int:
168
168
  retry_header: str | None = headers.get("Retry-After")
169
169
  if retry_header is None:
170
- return 0
170
+ return 1
171
171
 
172
172
  if retry_header.isdigit():
173
- return int(retry_header)
173
+ return max(1, int(retry_header))
174
174
 
175
175
  current_time = time()
176
176
  server_ts = self.get_header_ts(headers.get("Date"), current_time)
177
177
  retry_ts = self.get_header_ts(retry_header, current_time)
178
178
  adjusted_time = retry_ts - server_ts
179
179
 
180
- return max(0, ceil(adjusted_time))
180
+ return max(1, ceil(adjusted_time))
181
181
 
182
182
  async def _make_request(self, method: str, relative_url: str, **kwargs: Any) -> httpx.Response:
183
183
  if relative_url.startswith("http://") or relative_url.startswith("https://"):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: shopware-api-client
3
- Version: 1.0.109
3
+ Version: 1.0.110
4
4
  Summary: An api client for the Shopware API
5
5
  License: MIT
6
6
  Keywords: shopware,api,client
@@ -1,5 +1,5 @@
1
1
  shopware_api_client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- shopware_api_client/base.py,sha256=fLZ8jAXj5lCyRiFDWObPr83yGrE7mRrV-ZleUs4s2IU,30162
2
+ shopware_api_client/base.py,sha256=F92FOKivgWFF4HFbuNhqfyXA5T9RFD80g9IDK9kxykg,30170
3
3
  shopware_api_client/cache.py,sha256=JtojK7yDfAM937rDoqJj_FpNFf3zsfueTSyUX_Gsk4w,4997
4
4
  shopware_api_client/client.py,sha256=vkTZ8WLIu0Q3_73gXvidkTSpMJlWsJUjFyhDY2f2ISM,7583
5
5
  shopware_api_client/config.py,sha256=6IzpkuoYsh0d5c0BR453n1ijQwxB74HDYx1L6dmlJwQ,1623
@@ -109,7 +109,7 @@ shopware_api_client/endpoints/store/core/cart.py,sha256=34eNwuv7H9WZUtJGf4TkTGHi
109
109
  shopware_api_client/exceptions.py,sha256=3F5hFaUh91zmeBniSKhPUxU7yNRDIfGWfGqgq52RW1A,4717
110
110
  shopware_api_client/logging.py,sha256=4QSTK1vcdBew4shvLG-fm-xDOlddhOZeyb5T9Og0fSA,251
111
111
  shopware_api_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
112
- shopware_api_client-1.0.109.dist-info/LICENSE,sha256=qTihFhbGE2ZJJ7Byc9hnEYBY33yDK2Jw87SpAm0IKUs,1107
113
- shopware_api_client-1.0.109.dist-info/METADATA,sha256=Rf8p7FJ1eA0cb5NsxiRQgZ0TjLa9wZSJblnKpIRmXPE,24377
114
- shopware_api_client-1.0.109.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
115
- shopware_api_client-1.0.109.dist-info/RECORD,,
112
+ shopware_api_client-1.0.110.dist-info/LICENSE,sha256=qTihFhbGE2ZJJ7Byc9hnEYBY33yDK2Jw87SpAm0IKUs,1107
113
+ shopware_api_client-1.0.110.dist-info/METADATA,sha256=Vg1WI6OIcQzqZoKQ1oOtqfIfAViu--GEihuzud7Qi0s,24377
114
+ shopware_api_client-1.0.110.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
115
+ shopware_api_client-1.0.110.dist-info/RECORD,,