Skip to content

Commit

Permalink
switch to json load
Browse files Browse the repository at this point in the history
  • Loading branch information
atom-tr committed Oct 13, 2023
1 parent a32a2b4 commit 3ce967c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from __future__ import print_function

import os.path
import json
from manager_environment import EnvironmentManager as ENV

from google.auth.transport.requests import Request
Expand All @@ -17,12 +18,10 @@
# If modifying these scopes, delete the file token.json.
SCOPES = ['https://www.googleapis.com/auth/script.projects']

MANIFEST = '''
{
"timeZone": "{}",
MANIFEST = {
"timeZone": f"{ENV.TIMEZONE}",
"exceptionLogging": "CLOUD"
}
'''.format(ENV.TIMEZONE).strip()

def main():
"""Calls the Apps Script API.
Expand Down Expand Up @@ -51,7 +50,7 @@ def main():
'files': [{
'name': 'appsscript',
'type': 'JSON',
'source': MANIFEST
'source': json.dumps(MANIFEST)
}]
}
# loop through gs files in webflow directory
Expand Down

0 comments on commit 3ce967c

Please sign in to comment.