diff --git a/src/app.py b/src/app.py index ea5fef7..3bc0db0 100644 --- a/src/app.py +++ b/src/app.py @@ -4,6 +4,7 @@ import traceback import logging + import requests import json import pandas as pd @@ -272,7 +273,6 @@ def serve_layout(): dbc.Col([ html.P('Version date: 06/29/2023') ], width=3), - ]), dbc.Row([ diff --git a/src/datastore_loading.py b/src/datastore_loading.py index 2ec5d1b..ded06b3 100644 --- a/src/datastore_loading.py +++ b/src/datastore_loading.py @@ -3,6 +3,7 @@ import requests import logging + # --------------------------------- # MOVE THIS TO REFERENCE FROM ENV # --------------------------------- @@ -10,6 +11,7 @@ DATASTORE_URL = os.path.join(DATASTORE_URL, "api/") logger = logging.getLogger("imaging_app") + # --------------------------------- # Get Data From datastore # --------------------------------- @@ -28,5 +30,3 @@ def get_api_data(api_address, ignore_cache=False): return response.json() except Exception as e: logger.warn(e) - api_json['json'] = 'error: {}'.format(e) - return api_json