feat: 更新十一地市计算逻辑
This commit is contained in:
@@ -19,8 +19,10 @@ class AsphaltDomesticCalculator(Calculator):
|
||||
query = DataNetwork.get_query(self.year, self.month, name='石油沥青', spec='国产')
|
||||
data = query.first()
|
||||
price = data.price if data else 0
|
||||
|
||||
previous_price = int(getattr(self.previous_prices, 'price_network', price))
|
||||
fluctuating = price - previous_price
|
||||
|
||||
return price, fluctuating
|
||||
|
||||
def _get_survey_price(self):
|
||||
|
||||
Reference in New Issue
Block a user