调整周期字段为当日0时间
This commit is contained in:
@@ -1298,7 +1298,7 @@ class Sf_Dashboard_Connect(http.Controller):
|
||||
conn = psycopg2.connect(**db_config)
|
||||
# 获取请求的机床数据
|
||||
machine_list = ast.literal_eval(kw['machine_list'])
|
||||
time_threshold = datetime.now() - timedelta(days=1)
|
||||
time_threshold = datetime.now().replace(hour=0, minute=0, second=0, microsecond=0)
|
||||
|
||||
alarm_last_24_time = 0.0
|
||||
alarm_all_time = 0.0
|
||||
|
||||
Reference in New Issue
Block a user