From 880fafadd2dfcbc4b694e5d4068309d5fcc3cbda Mon Sep 17 00:00:00 2001 From: Eduardo Date: Mon, 4 Jan 2021 11:51:17 +0100 Subject: [PATCH] Upgrading google-drive package to 0.3.1 --- CHANGELOG.md | 6 ++++++ docs/source/conf.py | 2 +- googledrive/api.py | 4 ++-- setup.py | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 46230c0..761dd82 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ ## pending +## 0.3.1 + + +## 0.3.0 + + ## 0.2.1 - fixing models.GoogleApiClientHttpErrorBuilder.from_http_error(), it wasn't working. diff --git a/docs/source/conf.py b/docs/source/conf.py index 3a49e76..a28a987 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -22,7 +22,7 @@ author = 'Eduardo' # The full version, including alpha/beta/rc tags -release = '0.3.0' +release = '0.3.1' # -- General configuration --------------------------------------------------- diff --git a/googledrive/api.py b/googledrive/api.py index de9b0f7..7300180 100644 --- a/googledrive/api.py +++ b/googledrive/api.py @@ -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 = [ @@ -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" @@ -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) diff --git a/setup.py b/setup.py index 990db8a..100d528 100644 --- a/setup.py +++ b/setup.py @@ -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="garciaruiz.edu+google-drive-python@gmail.com", maintainer="Eduardo GarcĂ­a",