feat: 新增住建厅价格计算
This commit is contained in:
@@ -9,9 +9,10 @@ from commons.models.price_result import PriceResult
|
||||
|
||||
class Collector:
|
||||
|
||||
def __init__(self, year, month):
|
||||
def __init__(self, year, month, force=True):
|
||||
self.year = year
|
||||
self.month = month
|
||||
self.force = True # todo-2 已发布的价格不在覆盖计算
|
||||
|
||||
# todo-2 材料id映射
|
||||
|
||||
@@ -269,6 +270,7 @@ class Collector:
|
||||
).upsert()
|
||||
|
||||
def run(self):
|
||||
|
||||
# 当月价
|
||||
self.get_from_survey()
|
||||
self.get_from_result()
|
||||
|
Reference in New Issue
Block a user