mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-05-18 15:50:13 +02:00
Fix drive connector for service accounts with shared files turned off
This commit is contained in:
parent
9425ccd043
commit
c658ffd0b6
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user