fix bug
This commit is contained in:
@@ -35,7 +35,7 @@ def calc(**kwargs):
|
||||
district = conf.get('district', None)
|
||||
office_name = conf.get('name', None)
|
||||
if year_month is None:
|
||||
year_month = dateutils.format_date(dateutils.add_months(datetime.today().year, months=-1), "%Y%m")
|
||||
year_month = dateutils.format_date(dateutils.add_months(datetime.today(), months=-1), "%Y%m")
|
||||
if pd.isna(office_name):
|
||||
calcByCity(city, year_month)
|
||||
else:
|
||||
|
||||
@@ -35,7 +35,7 @@ def calc(**kwargs):
|
||||
district = conf.get('district', None)
|
||||
office_name = conf.get('name', None)
|
||||
if year_month is None:
|
||||
year_month = dateutils.format_date(dateutils.add_months(datetime.today().year, months=-1), "%Y%m")
|
||||
year_month = dateutils.format_date(dateutils.add_months(datetime.today(), months=-1), "%Y%m")
|
||||
|
||||
if pd.isna(office_name):
|
||||
calcByCity(city, year_month)
|
||||
|
||||
@@ -22,7 +22,7 @@ def fill_base_price(**kwargs):
|
||||
district = conf.get('district', '')
|
||||
office_name = conf.get('name', '')
|
||||
if year_month == "":
|
||||
year_month = dateutils.format_date(dateutils.add_months(datetime.today().year, months=-1), "%Y%m")
|
||||
year_month = dateutils.format_date(dateutils.add_months(datetime.today(), months=-1), "%Y%m")
|
||||
|
||||
query = {'cat': 'office'}
|
||||
if year_month != '':
|
||||
|
||||
Reference in New Issue
Block a user