mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-06-25 15:30:59 +02:00
linear dupe docs fix (#4607)
This commit is contained in:
parent
37adf31a3b
commit
2981b7a425
@ -244,14 +244,14 @@ def get_all_files_in_my_drive_and_shared(
|
||||
if not include_shared_with_me:
|
||||
folder_query += " and 'me' in owners"
|
||||
found_folders = False
|
||||
for file in execute_paginated_retrieval(
|
||||
for folder in execute_paginated_retrieval(
|
||||
retrieval_function=service.files().list,
|
||||
list_key="files",
|
||||
corpora="user",
|
||||
fields=SLIM_FILE_FIELDS if is_slim else FILE_FIELDS,
|
||||
q=folder_query,
|
||||
):
|
||||
update_traversed_ids_func(file[GoogleFields.ID])
|
||||
update_traversed_ids_func(folder[GoogleFields.ID])
|
||||
found_folders = True
|
||||
if found_folders:
|
||||
update_traversed_ids_func(get_root_folder_id(service))
|
||||
|
@ -271,7 +271,7 @@ class LinearConnector(LoadConnector, PollConnector, OAuthConnector):
|
||||
},
|
||||
)
|
||||
)
|
||||
yield documents
|
||||
yield documents
|
||||
|
||||
endCursor = response_json["data"]["issues"]["pageInfo"]["endCursor"]
|
||||
has_more = response_json["data"]["issues"]["pageInfo"]["hasNextPage"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user