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