调整故障时长
This commit is contained in:
@@ -926,7 +926,10 @@ class Sf_Dashboard_Connect(http.Controller):
|
||||
for row in result2:
|
||||
alarm_count.append(row[1])
|
||||
if row[0]:
|
||||
total_alarm_time += abs(float(row[0]))
|
||||
if float(row[0]) >= 28800:
|
||||
continue
|
||||
# total_alarm_time += abs(float(row[0]))
|
||||
total_alarm_time += float(row[0])
|
||||
else:
|
||||
total_alarm_time += 0.0
|
||||
if len(list(set(alarm_count))) == 1:
|
||||
@@ -1353,7 +1356,7 @@ class Sf_Dashboard_Connect(http.Controller):
|
||||
for result in results:
|
||||
alarm_last_24_nums.append(result[1])
|
||||
if result[0]:
|
||||
if float(result[0]) >= 1000:
|
||||
if float(result[0]) >= 28800:
|
||||
continue
|
||||
alarm_last_24_time += float(result[0])
|
||||
else:
|
||||
@@ -1371,7 +1374,7 @@ class Sf_Dashboard_Connect(http.Controller):
|
||||
for result in results:
|
||||
alarm_all_nums.append(result[1])
|
||||
if result[0]:
|
||||
if float(result[0]) >= 1000:
|
||||
if float(result[0]) >= 28800:
|
||||
continue
|
||||
alarm_all_time += float(result[0])
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user