浏览代码

remove products limit

Nikos Atlas 9 月之前
父节点
当前提交
1eda19f592
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/telecaster/Clients/CosmohomeClient.py

+ 3 - 2
src/telecaster/Clients/CosmohomeClient.py

@@ -244,8 +244,9 @@ def generate_xml():
     print("Cache loaded")
 
     products = []
-    for product in batch_products(client, params={'filter[active]': '1'},
-                                  batch_size=10, hard_limit=1):
+    for product in batch_products(
+            client, params={'filter[active]': '1'}, batch_size=100
+    ):
         products += client.parse_product(product)
 
     xml = dicttoxml(