From bfb845ac37b667f3c8303868477b3d8a0ce449dc Mon Sep 17 00:00:00 2001 From: Anton Roslund Date: Wed, 16 Apr 2025 19:11:14 +0200 Subject: [PATCH] Exclude map reports from from portnum-counts --- src/stats.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/stats.js b/src/stats.js index 4eff840..6873d6e 100644 --- a/src/stats.js +++ b/src/stats.js @@ -300,6 +300,7 @@ router.get('/portnum-counts2', async (req, res) => { created_at: { gte: startTime }, ...(Number.isInteger(nodeId) ? { from: nodeId } : {}), packet_id: { not: null }, + portnum: { not: 73 }, // Exclude portnum 73 (e.g. map reports) }, select: {from: true, packet_id: true, portnum: true, channel_id: true} });