Merge branch 'main' of http://119.6.225.4:3000/lhx/project
This commit is contained in:
@@ -76,7 +76,9 @@ class TaskScheduler:
|
||||
"""设置系统定时任务"""
|
||||
try:
|
||||
# 检查是否已存在每日重置任务
|
||||
|
||||
existing_job = self.scheduler.get_job("daily_reset_today_updated")
|
||||
# existing_job = self.scheduler.get_job("get_max_nyid")
|
||||
if not existing_job:
|
||||
# 添加每天午夜12点重置today_updated字段的任务
|
||||
self.scheduler.add_job(
|
||||
@@ -294,7 +296,8 @@ def scheduled_get_max_nyid_by_point_id():
|
||||
'point_id': d['point_id'],
|
||||
'linecode': d['level_data']['linecode'],
|
||||
'account_id': d['account_data']['account_id'],
|
||||
'section_id': d['section_data']['id']
|
||||
'section_id': d['section_data']['section_id'],
|
||||
'remaining': d['remaining'],
|
||||
}
|
||||
daily_create_data.append(tem)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user