mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-13 18:12:14 +02:00
fix: Stop reading Notion pages on polling
This commit is contained in:
@@ -433,8 +433,8 @@ class NotionConnector(LoadConnector, PollConnector):
|
||||
)
|
||||
if len(pages) > 0:
|
||||
yield from batch_generator(self._read_pages(pages), self.batch_size)
|
||||
if db_res.has_more:
|
||||
query_dict["start_cursor"] = db_res.next_cursor
|
||||
if db_res.has_more:
|
||||
query_dict["start_cursor"] = db_res.next_cursor
|
||||
else:
|
||||
break
|
||||
|
||||
|
Reference in New Issue
Block a user