Skip to content

Commit

Permalink
Upgrade gspread 3.1.0 for supporting team drive
Browse files Browse the repository at this point in the history
Signed-off-by: koooge <[email protected]>
  • Loading branch information
koooge committed May 28, 2019
1 parent 9480d89 commit e53e8cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions redash/query_runner/google_spreadsheets.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

try:
import gspread
from gspread.httpsession import HTTPSession
from oauth2client.service_account import ServiceAccountCredentials

enabled = True
Expand Down Expand Up @@ -166,11 +165,7 @@ def _get_spreadsheet_service(self):
key = json_loads(b64decode(self.configuration['jsonKeyFile']))
creds = ServiceAccountCredentials.from_json_keyfile_dict(key, scope)

timeout_session = HTTPSession()
timeout_session.requests_session = TimeoutSession()
spreadsheetservice = gspread.Client(auth=creds, http_session=timeout_session)
spreadsheetservice.login()
return spreadsheetservice
return gspread.authorize(creds)

def test_connection(self):
self._get_spreadsheet_service()
Expand Down
2 changes: 1 addition & 1 deletion requirements_all_ds.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
google-api-python-client==1.5.1
gspread==0.6.2
gspread==3.1.0
impyla==0.10.0
influxdb==2.7.1
MySQL-python==1.2.5
Expand Down

0 comments on commit e53e8cb

Please sign in to comment.