Now the tag for the weekly mesh can be configurable

This commit is contained in:
Pablo Revilla
2025-04-06 11:56:02 -07:00
parent 2b39074e01
commit ad767ee457
+2 -2
View File
@@ -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