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

This commit is contained in:
“Naeel”
2026-03-11 16:39:56 +04:00
parent f773fd4a5f
commit d466e9ce98
+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)}