fix: 修复地材混入计算结果的问题
This commit is contained in:
@@ -12,7 +12,7 @@ def calculate(year=2023, month=8):
|
||||
# 清空当月数据
|
||||
PriceResult.clean(year, month)
|
||||
# 从材料表获取趋势表所需的材料信息
|
||||
for material in Material.query.all():
|
||||
for material in Material.list(type=1):
|
||||
calculator = Calculator(year=year, month=month)
|
||||
calculator.name = material.name
|
||||
calculator.material_id = material.id
|
||||
|
Reference in New Issue
Block a user