add additional bits
This commit is contained in:
@@ -215,7 +215,7 @@ async def get_doc_content(
|
|||||||
effective_export_mime = export_mime_type_map.get(mime_type)
|
effective_export_mime = export_mime_type_map.get(mime_type)
|
||||||
|
|
||||||
request_obj = (
|
request_obj = (
|
||||||
drive_service.files().export_media(fileId=document_id, mimeType=effective_export_mime)
|
drive_service.files().export_media(fileId=document_id, mimeType=effective_export_mime, supportsAllDrives=True)
|
||||||
if effective_export_mime
|
if effective_export_mime
|
||||||
else drive_service.files().get_media(fileId=document_id, supportsAllDrives=True)
|
else drive_service.files().get_media(fileId=document_id, supportsAllDrives=True)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ async def get_drive_file_content(
|
|||||||
}.get(mime_type)
|
}.get(mime_type)
|
||||||
|
|
||||||
request_obj = (
|
request_obj = (
|
||||||
service.files().export_media(fileId=file_id, mimeType=export_mime_type)
|
service.files().export_media(fileId=file_id, mimeType=export_mime_type, supportsAllDrives=True)
|
||||||
if export_mime_type
|
if export_mime_type
|
||||||
else service.files().get_media(fileId=file_id, supportsAllDrives=True)
|
else service.files().get_media(fileId=file_id, supportsAllDrives=True)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user