mirror of
https://github.com/pablorevilla-meshtastic/meshview.git
synced 2026-06-10 17:24:56 +02:00
ADDED new cleanup to the keys table
This commit is contained in:
+10
@@ -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
|
||||
# -------------------------
|
||||
|
||||
Reference in New Issue
Block a user