fix: Decimal→float для JSON сериализации price

This commit is contained in:
“Naeel”
2026-03-11 16:39:56 +04:00
parent 2ca3137c0b
commit 81be52f6ef
+1 -1
View File
@@ -21,7 +21,7 @@ def list_products(event):
finally:
conn.close()
products = [{"id": row[0], "name": row[1], "price": row[2]} for row in rows]
products = [{"id": row[0], "name": row[1], "price": float(row[2])} for row in rows]
return {"products": products, "count": len(products)}