From 5169a6c7595334a51ae6813e286cd78bb45016cb Mon Sep 17 00:00:00 2001 From: "marcinlei@outlook.com" <1750818448@qq.com> Date: Sun, 24 Aug 2025 17:38:36 +0800 Subject: [PATCH] =?UTF-8?q?perf(timelineEvent)=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E6=97=B6=E9=97=B4=E7=BA=BF=E4=B8=AD=E5=9B=BA?= =?UTF-8?q?=E4=BB=B6=E6=9B=B4=E6=96=B0=E4=BA=8B=E4=BB=B6=E7=82=B9=E7=9A=84?= =?UTF-8?q?=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ZiJin_parse_event.py | 2 +- src/timelineEvent.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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]