Skip to content

Commit

Permalink
fix missing drive_id
Browse files Browse the repository at this point in the history
  • Loading branch information
lemisky committed Nov 28, 2023
1 parent f137d7c commit 73925ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aligo/apis/CustomShare.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def share_folder_by_aligo(self, parent_file_id: str, drive_id: str = None) -> st
"""
result = self.__share_folder_by_aligo(parent_file_id=parent_file_id, drive_id=drive_id)
if parent_file_id != 'root':
folder = self._core_get_file(GetFileRequest(file_id=parent_file_id))
folder = self._core_get_file(GetFileRequest(file_id=parent_file_id, drive_id=drive_id))
result = [[folder.name, result]]
else:
result = [['root', result]]
Expand Down

0 comments on commit 73925ae

Please sign in to comment.