From ad767ee457f7b18d02b8c3b2c25bd20c992d0745 Mon Sep 17 00:00:00 2001 From: Pablo Revilla Date: Sun, 6 Apr 2025 11:56:02 -0700 Subject: [PATCH] Now the tag for the weekly mesh can be configurable --- meshview/web.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meshview/web.py b/meshview/web.py index f58ddca..220b371 100644 --- a/meshview/web.py +++ b/meshview/web.py @@ -1160,10 +1160,10 @@ async def net(request): # Precompile regex for performance seq_pattern = re.compile(r"seq \d+$") - # Filter packets: exclude "seq \d+$" but include those containing "pablo-test" + # Filter packets: exclude "seq \d+$" but include those containing Tag filtered_packets = [ p for p in ui_packets - if not seq_pattern.match(p.payload) and "baymeshnet" in p.payload.lower() + if not seq_pattern.match(p.payload) and CONFIG["site"]["net_tag"] in p.payload.lower() ] # Render template