Skip to content

Commit

Permalink
Upgrading google-drive package to 0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardogr authored and egarcia committed Jan 4, 2021
1 parent bb6ed9a commit 880fafa
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

## pending

## 0.3.1


## 0.3.0


## 0.2.1

- fixing models.GoogleApiClientHttpErrorBuilder.from_http_error(), it wasn't working.
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
author = 'Eduardo'

# The full version, including alpha/beta/rc tags
release = '0.3.0'
release = '0.3.1'


# -- General configuration ---------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions googledrive/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def list_files(self, page_token: str, query: str):
pageSize=100,
spaces='drive',
corpora='user',
fields=f'nextPageToken, files({self.FIELDS_BASIC_FILE_METADATA})',
fields=f'nextPageToken, files({self.FIELDS_FILE_METADATA})',
pageToken=page_token).execute()

google_files = [
Expand Down Expand Up @@ -247,6 +247,7 @@ def googledrive_get_file(self, path: str):
"Missing folder: {}".format(path[0]))

path_elements = splitted_path[1 : len(splitted_path)-1]
filename = splitted_path[len(splitted_path)-1]

for path_element in path_elements:
query = f"{GoogleDrive.QUERY_IS_FOLDER} and '{folder.id}' in parents"
Expand All @@ -256,7 +257,6 @@ def googledrive_get_file(self, path: str):
raise MissingGoogleDriveFolderException(
"Missing folder: {}".format(path_element))

filename = splitted_path[len(splitted_path)-1]
query = f"{GoogleDrive.QUERY_IS_FILE} and '{folder.id}' in parents"
google_file = self.__get_file(query, filename)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def read_requirements(path):

setup(
name="google-drive",
version="0.3.0",
version="0.3.1",
author="Eduardo Garcia",
author_email="[email protected]",
maintainer="Eduardo García",
Expand Down

0 comments on commit 880fafa

Please sign in to comment.