优化定时

This commit is contained in:
沈健
2025-03-03 09:46:32 +08:00
parent 5b5252c185
commit d89ecf29f0
+1
View File
@@ -39,6 +39,7 @@ def calc(city, year_month):
sql += "and p_date >= '" + last_year_month + "01' "
date = dateutils.add_months(datetime.today(), months=-1)
year_month = int(dateutils.format_date(date, '%Y%m'))
print("开始计算年" + year_month + "写字楼基准价")
sample = es.scan_by_sql_to_data_frame(sql)
query = {'cat': 'office', 'status': 0}