1.把日更字段和补全历史数据字段分开
This commit is contained in:
@@ -139,9 +139,9 @@ class ConstructionMonitorUtils:
|
||||
continue
|
||||
|
||||
if not base_condition:
|
||||
# 当前为冬休且历史全是冬休 → 视为数据未补全,remaining 固定为 -365
|
||||
# 当前为冬休且历史全是冬休 → 视为数据未补全,用 bu_all=-365 表示;remaining 保持原样不改
|
||||
if latest_condition == "冬休":
|
||||
item_copy["remaining"] = -365
|
||||
item_copy["bu_all"] = -365
|
||||
result["data"].append(item_copy)
|
||||
else:
|
||||
result["winter"].append(item_copy)
|
||||
|
||||
Reference in New Issue
Block a user