Skip to content

Commit

Permalink
Updating ANALYTICS to use new Analytics credential objects (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-moore-97 authored Nov 3, 2023
1 parent 72e7aea commit 3a043fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gdrive/analytics_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@

log = logging.getLogger(__name__)

creds = service_account.Credentials.from_service_account_info(settings.CREDENTIALS)
creds = service_account.Credentials.from_service_account_info(
settings.ANALYTICS_CREDENTIALS
)
API_DATE_FORMAT = "%Y-%m-%d"

"""
Expand Down
2 changes: 2 additions & 0 deletions gdrive/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
CREDENTIALS = None
ANALYTICS_ROOT = None
ANALYTICS_PROPERTY_ID = None
ANALYTICS_CREDENTIALS = None

ES_HOST = os.getenv("ES_HOST")
ES_PORT = os.getenv("ES_PORT")
Expand All @@ -50,6 +51,7 @@
CREDENTIALS = config["credentials"]
ANALYTICS_ROOT = config["analytics_root"]
ANALYTICS_PROPERTY_ID = config["analytics_property_id"]
ANALYTICS_CREDENTIALS = config["analytics_credentials"]
ROOT_DIRECTORY = config["root_directory"]
CODE_NAMES = config["code_names"]
SHEETS_ID = config["sheets_id"]
Expand Down

0 comments on commit 3a043fb

Please sign in to comment.