From d752fe17c8624c53b6f32e1c076f1edf2e9958b8 Mon Sep 17 00:00:00 2001 From: han0 Date: Mon, 26 May 2025 17:44:09 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E8=AE=A1=E7=AE=97?= =?UTF-8?q?=E4=BB=B7=E6=A0=BC=E4=B8=8E=E4=BD=8D=E6=95=B0=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/calculators/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/calculators/__init__.py b/web/calculators/__init__.py index 40cd36c..d1cf4b1 100644 --- a/web/calculators/__init__.py +++ b/web/calculators/__init__.py @@ -201,7 +201,7 @@ class Calculator: if sum(prices) == 0: return 0 result = sum(prices) / sum([self.weight_ftb, self.weight_ss, self.weight_fhb, self.weight_network, self.weight_survey]) - result = round(result, round_dit) + result = self.round_method(result, self.round_bit) return result def _get_recommend_price(self, round_by=10):