From c6c0228970cd3c0cc35d27a8be1ef87357330a4b Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Thu, 11 Aug 2022 22:56:46 -0300 Subject: [PATCH] fix crawler startup query --- scripts/dht_crawler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dht_crawler.py b/scripts/dht_crawler.py index c37188741..0c52e7028 100644 --- a/scripts/dht_crawler.py +++ b/scripts/dht_crawler.py @@ -73,7 +73,7 @@ class PeerStorage(SQLiteMixin): async def all_peers(self): return [ DHTPeer(**peer) for peer in await self.db.execute_fetchall( - "select * from peer where latency > 0 or last_seen < datetime('now', '-1h')") + "select * from peer where latency > 0 or last_seen > datetime('now', '-1 hour')") ] async def save_peers(self, *peers):