mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-06-27 08:21:00 +02:00
Touchup (#2961)
This commit is contained in:
parent
1187849afe
commit
23988f8c49
@ -44,8 +44,6 @@ class BookstackConnector(LoadConnector, PollConnector):
|
|||||||
start: SecondsSinceUnixEpoch | None = None,
|
start: SecondsSinceUnixEpoch | None = None,
|
||||||
end: SecondsSinceUnixEpoch | None = None,
|
end: SecondsSinceUnixEpoch | None = None,
|
||||||
) -> tuple[list[Document], int]:
|
) -> tuple[list[Document], int]:
|
||||||
doc_batch: list[Document] = []
|
|
||||||
|
|
||||||
params = {
|
params = {
|
||||||
"count": str(batch_size),
|
"count": str(batch_size),
|
||||||
"offset": str(start_ind),
|
"offset": str(start_ind),
|
||||||
@ -63,8 +61,7 @@ class BookstackConnector(LoadConnector, PollConnector):
|
|||||||
)
|
)
|
||||||
|
|
||||||
batch = bookstack_client.get(endpoint, params=params).get("data", [])
|
batch = bookstack_client.get(endpoint, params=params).get("data", [])
|
||||||
for item in batch:
|
doc_batch = [transformer(bookstack_client, item) for item in batch]
|
||||||
doc_batch.append(transformer(bookstack_client, item))
|
|
||||||
|
|
||||||
return doc_batch, len(batch)
|
return doc_batch, len(batch)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user