Skip to content

Commit

Permalink
Merge branch 'main' into latest
Browse files Browse the repository at this point in the history
  • Loading branch information
chandra-tacc authored Nov 27, 2023
2 parents cb9737e + 9684e8e commit e68787b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import traceback

import logging

import requests
import json
import pandas as pd
Expand Down Expand Up @@ -272,7 +273,6 @@ def serve_layout():
dbc.Col([
html.P('Version date: 06/29/2023')
], width=3),

]),

dbc.Row([
Expand Down
4 changes: 2 additions & 2 deletions src/datastore_loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
import requests
import logging


# ---------------------------------
# MOVE THIS TO REFERENCE FROM ENV
# ---------------------------------
DATASTORE_URL = os.environ.get("DATASTORE_URL","url not found")
DATASTORE_URL = os.path.join(DATASTORE_URL, "api/")
logger = logging.getLogger("imaging_app")


# ---------------------------------
# Get Data From datastore
# ---------------------------------
Expand All @@ -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

0 comments on commit e68787b

Please sign in to comment.