Skip to content

Commit

Permalink
fix: add default value for export_links in gdrive_download
Browse files Browse the repository at this point in the history
  • Loading branch information
milovate committed Dec 21, 2024
1 parent 6b041e5 commit 7172465
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion daras_ai_v2/gdrive_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ def gdrive_list_urls_of_files_in_folder(f: furl, max_depth: int = 4) -> list[str
return filter(None, urls)


def gdrive_download(f: furl, mime_type: str, export_links: dict) -> tuple[bytes, str]:
def gdrive_download(
f: furl, mime_type: str, export_links: dict = {}
) -> tuple[bytes, str]:
from googleapiclient import discovery
from googleapiclient.http import MediaIoBaseDownload

Expand Down

0 comments on commit 7172465

Please sign in to comment.