shopware-api-client 1.0.110__py3-none-any.whl → 1.0.111__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.
- shopware_api_client/base.py +8 -4
- {shopware_api_client-1.0.110.dist-info → shopware_api_client-1.0.111.dist-info}/METADATA +1 -1
- {shopware_api_client-1.0.110.dist-info → shopware_api_client-1.0.111.dist-info}/RECORD +5 -5
- {shopware_api_client-1.0.110.dist-info → shopware_api_client-1.0.111.dist-info}/LICENSE +0 -0
- {shopware_api_client-1.0.110.dist-info → shopware_api_client-1.0.111.dist-info}/WHEEL +0 -0
shopware_api_client/base.py
CHANGED
|
@@ -241,11 +241,15 @@ class ClientBase:
|
|
|
241
241
|
wait_time = self.parse_reset_time(response.headers)
|
|
242
242
|
remaining_requests = int(response.headers.get(HEADER_X_RATE_LIMIT_REMAINING))
|
|
243
243
|
|
|
244
|
-
|
|
245
|
-
self.cache.set(x_retry_limit_cache_key, x_retry_limit),
|
|
246
|
-
self.cache.set(x_retry_reset_cache_key, int(time()) + wait_time, wait_time),
|
|
244
|
+
tasks = [
|
|
247
245
|
self.cache.set(x_retry_remaining_cache_key, remaining_requests),
|
|
248
|
-
|
|
246
|
+
self.cache.set(x_retry_limit_cache_key, x_retry_limit),
|
|
247
|
+
]
|
|
248
|
+
|
|
249
|
+
if wait_time > 0:
|
|
250
|
+
tasks.append(self.cache.set(x_retry_reset_cache_key, int(time()) + wait_time, wait_time))
|
|
251
|
+
|
|
252
|
+
await asyncio.gather(*tasks)
|
|
249
253
|
|
|
250
254
|
if got_lock:
|
|
251
255
|
await self.cache.delete(x_retry_lock_cache_key)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
shopware_api_client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
shopware_api_client/base.py,sha256=
|
|
2
|
+
shopware_api_client/base.py,sha256=fxqZX1648lltFj1nIRRvrLk5WmJxew0MQ9TWPutaAcM,30252
|
|
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.
|
|
113
|
-
shopware_api_client-1.0.
|
|
114
|
-
shopware_api_client-1.0.
|
|
115
|
-
shopware_api_client-1.0.
|
|
112
|
+
shopware_api_client-1.0.111.dist-info/LICENSE,sha256=qTihFhbGE2ZJJ7Byc9hnEYBY33yDK2Jw87SpAm0IKUs,1107
|
|
113
|
+
shopware_api_client-1.0.111.dist-info/METADATA,sha256=KY6kAf9a5_-umMSa0qsqSRNqf6vFLy7T2w7BjcyeuCU,24377
|
|
114
|
+
shopware_api_client-1.0.111.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
115
|
+
shopware_api_client-1.0.111.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|