linear dupe docs fix (#4607)

This commit is contained in:
Evan Lohn 2025-04-24 14:00:21 -07:00 committed by GitHub
parent 37adf31a3b
commit 2981b7a425
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -244,14 +244,14 @@ def get_all_files_in_my_drive_and_shared(
if not include_shared_with_me: if not include_shared_with_me:
folder_query += " and 'me' in owners" folder_query += " and 'me' in owners"
found_folders = False found_folders = False
for file in execute_paginated_retrieval( for folder in execute_paginated_retrieval(
retrieval_function=service.files().list, retrieval_function=service.files().list,
list_key="files", list_key="files",
corpora="user", corpora="user",
fields=SLIM_FILE_FIELDS if is_slim else FILE_FIELDS, fields=SLIM_FILE_FIELDS if is_slim else FILE_FIELDS,
q=folder_query, q=folder_query,
): ):
update_traversed_ids_func(file[GoogleFields.ID]) update_traversed_ids_func(folder[GoogleFields.ID])
found_folders = True found_folders = True
if found_folders: if found_folders:
update_traversed_ids_func(get_root_folder_id(service)) update_traversed_ids_func(get_root_folder_id(service))