Skip to content

Commit

Permalink
gdrive: share drive vs just folder id when we set corpora param (iter…
Browse files Browse the repository at this point in the history
  • Loading branch information
shcheklein authored Mar 9, 2020
1 parent 37e4a5d commit 4bceb9d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dvc/remote/gdrive.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,10 @@ def _cache_path(self, remote_path, remote_id, cache=None):
def list_params(self):
params = {"corpora": "default"}
if self._bucket != "root" and self._bucket != "appDataFolder":
params["driveId"] = self._get_remote_drive_id(self._bucket)
params["corpora"] = "drive"
drive_id = self._get_remote_drive_id(self._bucket)
if drive_id:
params["driveId"] = drive_id
params["corpora"] = "drive"
return params

@gdrive_retry
Expand Down

0 comments on commit 4bceb9d

Please sign in to comment.