调整默认值

This commit is contained in:
mgw
2024-09-25 14:10:11 +08:00
parent 2fcad742b8
commit 63444d3dd1

View File

@@ -905,8 +905,8 @@ class Sf_Dashboard_Connect(http.Controller):
res['data'].append({
'name': log.name,
'alarm_time': log.alarm_time.strftime('%Y-%m-%d %H:%M:%S'),
'fault_alarm_info': log.fault_alarm_info,
'fault_process': log.fault_process
'fault_alarm_info': log.fault_alarm_info if log.fault_alarm_info else ' ',
'fault_process': log.fault_process if log.fault_process else ' ',
})
except Exception as e: