mirror of
https://github.com/pablorevilla-meshtastic/meshview.git
synced 2026-11-10 07:42:22 +01:00
ADDED new cleanup to the keys table
This commit is contained in:
1 parent
82323a8783
commit
671af01e0b
1 file changed
+10
+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