ADDED new cleanup to the keys table

This commit is contained in:
pablorevilla-meshtastic
2026-05-14 14:54:03 -07:00
parent 82323a8783
commit 671af01e0b
+10
View File
@@ -213,6 +213,16 @@ async def daily_cleanup_at(
)
cleanup_logger.info(f"Deleted {result.rowcount} rows from Traceroute")
# -------------------------
# NodePublicKey
# -------------------------
result = await session.execute(
delete(models.NodePublicKey).where(
models.NodePublicKey.last_seen_us < cutoff_us
)
)
cleanup_logger.info(f"Deleted {result.rowcount} rows from NodePublicKey")
# -------------------------
# Node
# -------------------------