mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-19 20:24:32 +02:00
Fix drive connector for service accounts with shared files turned off
This commit is contained in:
@@ -75,7 +75,9 @@ def _run_drive_file_query(
|
||||
results = (
|
||||
service.files()
|
||||
.list(
|
||||
corpora="allDrives", # needed to search through shared drives
|
||||
corpora="allDrives"
|
||||
if include_shared
|
||||
else "user", # needed to search through shared drives
|
||||
pageSize=batch_size,
|
||||
supportsAllDrives=include_shared,
|
||||
includeItemsFromAllDrives=include_shared,
|
||||
|
Reference in New Issue
Block a user