优化定时
This commit is contained in:
@@ -39,6 +39,7 @@ def calc(city, year_month):
|
|||||||
sql += "and p_date >= '" + last_year_month + "01' "
|
sql += "and p_date >= '" + last_year_month + "01' "
|
||||||
date = dateutils.add_months(datetime.today(), months=-1)
|
date = dateutils.add_months(datetime.today(), months=-1)
|
||||||
year_month = int(dateutils.format_date(date, '%Y%m'))
|
year_month = int(dateutils.format_date(date, '%Y%m'))
|
||||||
|
print("开始计算年" + year_month + "写字楼基准价")
|
||||||
|
|
||||||
sample = es.scan_by_sql_to_data_frame(sql)
|
sample = es.scan_by_sql_to_data_frame(sql)
|
||||||
query = {'cat': 'office', 'status': 0}
|
query = {'cat': 'office', 'status': 0}
|
||||||
|
|||||||
Reference in New Issue
Block a user