diff --git a/src/ZiJin_parse_event.py b/src/ZiJin_parse_event.py index ceb1592..81d914f 100644 --- a/src/ZiJin_parse_event.py +++ b/src/ZiJin_parse_event.py @@ -138,7 +138,7 @@ def parse_common_event_to_json(log_str, keys): case "S0/G0": title = "电源状态Up" case "FW UPDATE": - title = "固件更新" + title = f"{idl_dict['sensor']}固件更新" cause = idl_dict['description'] details_info['版本变更'] = cause case _: diff --git a/src/timelineEvent.py b/src/timelineEvent.py index 7e0d3a5..a66a070 100644 --- a/src/timelineEvent.py +++ b/src/timelineEvent.py @@ -230,7 +230,7 @@ class TimelineGraphicsView(QGraphicsView): return self.group_colors[0] case _ if "温度事件" in event.title: return self.group_colors[1] - case "固件更新": + case _ if "固件更新" in event.title: return self.group_colors[2] case _ if "电压事件" in event.title: return self.group_colors[3]