From 310e1c0b41f68258d65dc88da56767702f1860de Mon Sep 17 00:00:00 2001 From: Marc-Andrieu Date: Thu, 5 Feb 2026 22:18:19 +0100 Subject: [PATCH] Fix(AMAP): write info logs in euros, not cents --- app/modules/amap/endpoints_amap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/modules/amap/endpoints_amap.py b/app/modules/amap/endpoints_amap.py index 4d2f34af7f..1526fc7e45 100644 --- a/app/modules/amap/endpoints_amap.py +++ b/app/modules/amap/endpoints_amap.py @@ -466,7 +466,7 @@ async def add_order_to_delievery( detail="You are not allowed to add this order", ) - amount = 0.0 + amount = 0 for product_id, product_quantity in zip( order.products_ids, order.products_quantity, @@ -535,7 +535,7 @@ async def add_order_to_delievery( productsret = await cruds_amap.get_products_of_order(db=db, order_id=order_id) hyperion_amap_logger.info( - f"Add_order_to_delivery: An order has been created for user {order.user_id} for an amount of {amount}€. ({request_id})", + f"Add_order_to_delivery: An order has been created for user {order.user_id} for an amount of {(amount / 100):.2f}€. ({request_id})", ) if orderret is None: