Skip to content

Commit

Permalink
Touchup (#2961)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhongsun96 authored Oct 27, 2024
1 parent 1187849 commit 23988f8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions backend/danswer/connectors/bookstack/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ def _get_doc_batch(
start: SecondsSinceUnixEpoch | None = None,
end: SecondsSinceUnixEpoch | None = None,
) -> tuple[list[Document], int]:
doc_batch: list[Document] = []

params = {
"count": str(batch_size),
"offset": str(start_ind),
Expand All @@ -63,8 +61,7 @@ def _get_doc_batch(
)

batch = bookstack_client.get(endpoint, params=params).get("data", [])
for item in batch:
doc_batch.append(transformer(bookstack_client, item))
doc_batch = [transformer(bookstack_client, item) for item in batch]

return doc_batch, len(batch)

Expand Down

0 comments on commit 23988f8

Please sign in to comment.