Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
FlyingBird95 committed May 6, 2018
1 parent 8f714ca commit 24da232
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
sys.path.insert(0, os.path.abspath('..'))
sys.path.insert(0, os.path.abspath('../flask-monitoringdashboard'))

with open('flask_monitoringdashboard/constants.json', 'r') as f:
with open('../flask_monitoringdashboard/constants.json', 'r') as f:
constants = json.load(f)

# -- Project information -----------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion flask_monitoringdashboard/constants.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.12.4",
"version": "1.12.5",
"author": "Patrick Vogel, Thijs Klooster & Bogdan Petre",
"email": "patrickvogel@live.nl"
}
6 changes: 4 additions & 2 deletions flask_monitoringdashboard/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ def get_endpoint_details(db_session, endpoint):

def get_details(db_session):
""" Return details about the deployment """
from constants import VERSION
import json
with open('flask_monitoringdashboard/constants.json', 'r') as f:
constants = json.load(f)

return {
'link': config.link,
'dashboard-version': VERSION,
'dashboard-version': constants['version'],
'config-version': config.version,
'first-request': get_date_of_first_request(db_session)
}
Expand Down

0 comments on commit 24da232

Please sign in to comment.