fix: Decimal→float для JSON сериализации price
This commit is contained in:
@@ -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)}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user