Commit a140d233 authored by ZZH's avatar ZZH

fix alarm msg 2024-06-04

parent 794264b8
...@@ -277,7 +277,7 @@ async def pack_alarm_records(records, pid, lang): ...@@ -277,7 +277,7 @@ async def pack_alarm_records(records, pid, lang):
event_msg = r.get("message") event_msg = r.get("message")
phase_line = load_phase_line(mtr_name, lang) phase_line = load_phase_line(mtr_name, lang)
name = mtr_names.get([r["mtid"]]) name = mtr_names.get(r["mtid"])
if name: if name:
mtr_name = f"{name}{phase_line}" if phase_line else name mtr_name = f"{name}{phase_line}" if phase_line else name
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment