diff --git a/src/api/index.py b/src/api/index.py index 71cbd2e..748b03c 100755 --- a/src/api/index.py +++ b/src/api/index.py @@ -1107,7 +1107,7 @@ def prepare_plot(id): q.append({"info":"Monitoring CPU consumption trends","ylabel":"% used","node":node,"type":"bar","x":XCPU,"labels":np.arange(1,xn_).tolist(),"series":names,"title":"CPU Usage"}) key = 'apps@'+node session[key] = q - print session.keys() + return (key,200) except Exception,e: print (e) @@ -1118,7 +1118,7 @@ def prepare_plot(id): @app.route("/1/plot///",methods=['GET']) def get_charts(format,id,key): - print session.keys() + if key not in session : context = SYS_ARGS.PARAMS['context'] if 'context' in SYS_ARGS.PARAMS else '' return render_template('error.html',context=context,caption='404',msg='Session key NOT set in session')