From 58e700db2b0be9aed78c2a7b38a339ca84591866 Mon Sep 17 00:00:00 2001 From: Pablo Revilla Date: Fri, 17 Jan 2025 12:47:55 -0800 Subject: [PATCH] Providing /stats to give us basic reporting on number of nodes and packets seen by the tool --- meshview/store.py | 1 + 1 file changed, 1 insertion(+) diff --git a/meshview/store.py b/meshview/store.py index 74f95c5..0b01ccc 100644 --- a/meshview/store.py +++ b/meshview/store.py @@ -14,6 +14,7 @@ from meshview import notify # We count the total amount of packages +# This is to be used by /stats in web.py async def get_total_packet_count(): async with database.async_session() as session: q = select(func.count(Packet.id)) # Use SQLAlchemy's func to count packets