fix bug
This commit is contained in:
@@ -35,7 +35,7 @@ def calc(**kwargs):
|
||||
district = conf.get('district', '')
|
||||
office_name = conf.get('name', '')
|
||||
|
||||
if pd.isna(office_name):
|
||||
if pd.isna(office_name) or office_name == "":
|
||||
calcByCity(city, year_month)
|
||||
else:
|
||||
# 直接重算出最近一年的数据,保证一年有数据
|
||||
|
||||
Reference in New Issue
Block a user