Skip to content

Commit

Permalink
fix: ensure all files are returned
Browse files Browse the repository at this point in the history
  • Loading branch information
gcharest authored Feb 2, 2024
1 parent 24c101e commit 2a0a993
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/integrations/google_workspace/google_drive.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,11 +278,11 @@ def list_folders_in_folder(folder):
)
.execute()
)
all_files.extend(results.get('files', []))
page_token = results.get('nextPageToken')
all_files.extend(results.get("files", []))
page_token = results.get("nextPageToken")
if not page_token:
break
return results.get("files", [])
return all_files


@handle_google_api_errors
Expand Down

0 comments on commit 2a0a993

Please sign in to comment.