优化参数
This commit is contained in:
@@ -14,7 +14,7 @@ cities = city_df['城市列表'].values.tolist()
|
||||
|
||||
path = "/home/airflow/data/mt"
|
||||
|
||||
output_date = len(sys.argv) > 1 if sys.argv[1] else dateutils.format_date(datetime.datetime.now(), '%Y%m')
|
||||
output_date = sys.argv[1] if len(sys.argv) > 1 else dateutils.format_date(datetime.datetime.now(), '%Y%m')
|
||||
|
||||
month_start = dateutils.format_date(dateutils.add_months(dateutils.parse_date(output_date, '%Y%m'), months=-1), '%Y%m') + '01'
|
||||
curr_month_start = output_date + '01'
|
||||
|
||||
Reference in New Issue
Block a user