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) # gReader = factory.instance(type=class_read,args=p)
@app.route('/') @app.route('/')
def dashboard(): def home():
context = PARAMS['context'] context = PARAMS['context']
if 'title' in PARAMS : if 'title' in PARAMS :
title = PARAMS['title'] title = PARAMS['title']
@ -64,8 +64,8 @@ def dashboard():
return render_template('dashboard.html',context=context,title=title,app_names=apps) return render_template('dashboard.html',context=context,title=title,app_names=apps)
@app.route('/1/get/nodes') @app.route('/1/get/nodes')
def get_apps(): def get_nodes():
""" """
This function returns the labels of applications for every node registered This function returns the labels of applications for every node registered
@param None @param None
e.g: apps@zulu.org e.g: apps@zulu.org
@ -80,7 +80,7 @@ def get_apps():
@app.route('/1/get/apps') @app.route('/1/get/apps')
def get_apps(): def get_apps():
""" """
This function returns the applications for a given node This function returns the applications for a given node
@param node identifier e.g: apps@zulu.org @param node identifier e.g: apps@zulu.org
""" """
@ -98,7 +98,7 @@ def get_apps():
@app.route('/1/get/summary/<id>') @app.route('/1/get/summary/<id>')
def get_summary(id): def get_summary(id):
""" """
This function returns the summary i.e an overall assessment of resource usage This function returns the summary i.e an overall assessment of resource usage
It will pull information out of the user's data-store (database & document) specified in the configuration It will pull information out of the user's data-store (database & document) specified in the configuration
@param id {app_resources|app_status|folder_size} @param id {app_resources|app_status|folder_size}
@ -135,7 +135,6 @@ def get_usage_trend():
return json.dumps(r) return json.dumps(r)
@app.route("/1/app/usage/trend") @app.route("/1/app/usage/trend")
def get_usage_detail(): 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 This function returns detailed information about usage per application monitored. It will return the 24 most recent observations in the logs

Loading…
Cancel
Save