From 0bcddaa5dc6700651ab04943ef8496275a30614a Mon Sep 17 00:00:00 2001 From: lub Date: Sun, 3 May 2020 19:44:14 +0200 Subject: [PATCH] longer timeouts --- scrape.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scrape.py b/scrape.py index de9ad70..05a4064 100644 --- a/scrape.py +++ b/scrape.py @@ -175,10 +175,10 @@ async def main(): else: # no new posts found pass - next_update = datetime.now() + timedelta(minutes=30) + next_update = datetime.now() + timedelta(minutes=15) for mxid in next_batch: - sync = await matrix[mxid].sync(timeout=10000, + sync = await matrix[mxid].sync(timeout=30000, sync_filter=sync_filter, since=next_batch[mxid]) next_batch[mxid] = sync.next_batch