diff --git a/examples/pg-list-python/code/catalog.py b/examples/pg-list-python/code/catalog.py index 54ef884..2095879 100644 --- a/examples/pg-list-python/code/catalog.py +++ b/examples/pg-list-python/code/catalog.py @@ -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)}