From 2a358bf82ebc7e17866911c3c657b6b92278b436 Mon Sep 17 00:00:00 2001 From: aaron <> Date: Mon, 24 Feb 2025 21:18:30 +0800 Subject: [PATCH] update --- app/api/endpoints/order.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/api/endpoints/order.py b/app/api/endpoints/order.py index de4f2bc..9b6457b 100644 --- a/app/api/endpoints/order.py +++ b/app/api/endpoints/order.py @@ -93,9 +93,9 @@ def calculate_price(price_request: OrderPriceCalculateRequest,user: UserDB,db: S CommunityDB.id == price_request.community_id ).first() if community: - base_price = community.base_price - extra_package_price = community.extra_package_price - extra_package_threshold = community.extra_package_threshold + base_price = float(community.base_price) + extra_package_price = float(community.extra_package_price) + extra_package_threshold = int(community.extra_package_threshold) original_amount = base_price