This commit is contained in:
2025-08-20 14:10:55 +08:00
parent ef5601e0e0
commit c1168b02a8
+7 -2
View File
@@ -34,8 +34,13 @@ def calc(**kwargs):
year_month = conf.get('year_month', '')
district = conf.get('district', '')
office_name = conf.get('name', '')
if pd.isna(office_name) or office_name == "":
if city == "":
city = None
if district == "":
district = None
if office_name == "":
office_name = None
if pd.isna(office_name):
calcByCity(city, year_month)
else:
# 直接重算出最近一年的数据,保证一年有数据