XML arama sınırlarını kaldır - tüm ürünleri göster
Browse files- app.py +1 -1
- smart_warehouse_whatsapp.py +2 -2
app.py
CHANGED
@@ -76,7 +76,7 @@ def get_warehouse_stock(product_name):
|
|
76 |
if gpt5_result:
|
77 |
# Format for WhatsApp display
|
78 |
warehouse_info = []
|
79 |
-
for product in gpt5_result
|
80 |
info = f"📦 {product['name']}"
|
81 |
if product['variant']:
|
82 |
info += f" ({product['variant']})"
|
|
|
76 |
if gpt5_result:
|
77 |
# Format for WhatsApp display
|
78 |
warehouse_info = []
|
79 |
+
for product in gpt5_result: # Show all found products
|
80 |
info = f"📦 {product['name']}"
|
81 |
if product['variant']:
|
82 |
info += f" ({product['variant']})"
|
smart_warehouse_whatsapp.py
CHANGED
@@ -181,7 +181,7 @@ Sizes: S, M, L, XL, XXL, SMALL, MEDIUM, LARGE
|
|
181 |
{warehouse_filter}
|
182 |
|
183 |
Products with stock:
|
184 |
-
{json.dumps(products_summary
|
185 |
|
186 |
Return ONLY index numbers as comma-separated list (e.g., "5,8,12,15") or -1 if none found.
|
187 |
NO explanations, ONLY numbers."""
|
@@ -230,7 +230,7 @@ NO explanations, ONLY numbers."""
|
|
230 |
|
231 |
# Collect matched products
|
232 |
matched_products = []
|
233 |
-
for idx in indices
|
234 |
if 0 <= idx < len(all_products):
|
235 |
product_block = all_products[idx]
|
236 |
|
|
|
181 |
{warehouse_filter}
|
182 |
|
183 |
Products with stock:
|
184 |
+
{json.dumps(products_summary, ensure_ascii=False)}
|
185 |
|
186 |
Return ONLY index numbers as comma-separated list (e.g., "5,8,12,15") or -1 if none found.
|
187 |
NO explanations, ONLY numbers."""
|
|
|
230 |
|
231 |
# Collect matched products
|
232 |
matched_products = []
|
233 |
+
for idx in indices: # No limit, get all matches
|
234 |
if 0 <= idx < len(all_products):
|
235 |
product_block = all_products[idx]
|
236 |
|