From 950e2cf2c18d082d13f11156838bae8a4a65cd94 Mon Sep 17 00:00:00 2001 From: Daniel Smith <56164590+DanielRyanSmith@users.noreply.github.com> Date: Wed, 26 Jul 2023 07:26:39 -0700 Subject: [PATCH] Obtain API key from secrets function --- api/origin_trials_api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/origin_trials_api.py b/api/origin_trials_api.py index 70307abdd323..a817a66554b8 100644 --- a/api/origin_trials_api.py +++ b/api/origin_trials_api.py @@ -15,6 +15,7 @@ from framework import basehandlers +from framework.secrets import get_ot_api_key import requests import settings @@ -23,7 +24,7 @@ class OriginTrialsAPI(basehandlers.APIHandler): def do_get(self, **kwargs): """Get a list of all origin trials.""" - key = settings.OT_API_KEY + key = get_ot_api_key() # Return an empty list if no API key is found. if key == None: return []