fix: 修复趋势表三明钢铁价格未正常显示的问题

This commit is contained in:
han0
2025-02-13 14:59:34 +08:00
parent 66ce227835
commit 33cc335017
2 changed files with 4 additions and 2 deletions

View File

@@ -150,7 +150,7 @@ class Calculator:
return price, fluctuating
def _get_ss_price(self):
query = SanmingSteel.get_query(self.year, self.month, name='高线', spec='φ10mm')
query = SanmingSteel.get_query(self.year, self.month, material=self.material_id)
data = query.first()
price = int(data.price) if data else 0
fluctuating = int(self._get_fluctuating('price_ss', price))