mirror of
https://github.com/pablorevilla-meshtastic/meshview.git
synced 2026-06-24 20:11:22 +02:00
Providing /stats to give us basic reporting on number of nodes and packets seen by the tool
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user