fix crawler startup query
This commit is contained in:
parent
8d9d2c76ae
commit
c6c0228970
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue