fix: 修复权重计算错误的问题

This commit is contained in:
han0
2025-02-13 16:26:25 +08:00
parent 33cc335017
commit 09150056da

View File

@@ -214,7 +214,7 @@ class Calculator:
self.fluctuating_survey * self.weight_survey,
]
fluctuating = sum(self._fluctuatings) / len(self._fluctuatings)
fluctuating = sum(self._fluctuatings) / sum([self.weight_ftb, self.weight_ss, self.weight_fhb, self.weight_network, self.weight_survey])
fluctuating = self.round_method(fluctuating, self.round_bit)
price = fluctuating + previous_price