From 5e42e15bcb41e0295b537998b4d31111633cd7da Mon Sep 17 00:00:00 2001 From: Chandra Y Date: Tue, 6 Feb 2024 16:19:54 -0600 Subject: [PATCH] switch to tapis token --- src/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app.py b/src/app.py index a1b6779..167ef01 100644 --- a/src/app.py +++ b/src/app.py @@ -278,11 +278,11 @@ def api_monitoring(): global api_data_cache try: - + tapis_token = get_tapis_token(request) if not api_data_index['monitoring'] or not check_data_current(request, datetime.strptime(api_data_index['monitoring'], datetime_format)): # api_date = datetime.now().strftime(datetime_format) if data_access_type != 'LOCAL': - latest_monitoring_json_tuple = get_api_monitoring_data(request) + latest_monitoring_json_tuple = get_api_monitoring_data(tapis_token) else: latest_monitoring_json_tuple = get_local_monitoring_data(monitoring_data_filepath)