Bug fix with indentations

community
Steve L. Nyemba 8 years ago
parent a8b32ec459
commit 293855b145

@ -49,7 +49,7 @@ factory = DataSourceFactory()
# gReader = factory.instance(type=class_read,args=p)
@app.route('/')
def dashboard():
def home():
context = PARAMS['context']
if 'title' in PARAMS :
title = PARAMS['title']
@ -64,7 +64,7 @@ def dashboard():
return render_template('dashboard.html',context=context,title=title,app_names=apps)
@app.route('/1/get/nodes')
def get_apps():
def get_nodes():
"""
This function returns the labels of applications for every node registered
@param None
@ -135,7 +135,6 @@ def get_usage_trend():
return json.dumps(r)
@app.route("/1/app/usage/trend")
def get_usage_detail():
"""
This function returns detailed information about usage per application monitored. It will return the 24 most recent observations in the logs

Loading…
Cancel
Save