iyosha commited on
Commit
91eef79
·
verified ·
1 Parent(s): bea458c

Update backend/backend.py

Browse files
Files changed (1) hide show
  1. backend/backend.py +1 -1
backend/backend.py CHANGED
@@ -7,7 +7,7 @@ from oauth2client.service_account import ServiceAccountCredentials
7
 
8
  class Backend:
9
  def __init__(self, sheet_name: str, credentials: str):
10
- creds_dict = json.load(open(credentials))
11
  scope = [
12
  "https://spreadsheets.google.com/feeds",
13
  "https://www.googleapis.com/auth/drive",
 
7
 
8
  class Backend:
9
  def __init__(self, sheet_name: str, credentials: str):
10
+ creds_dict = json.loads(credentials)
11
  scope = [
12
  "https://spreadsheets.google.com/feeds",
13
  "https://www.googleapis.com/auth/drive",