From 27160d0a8ec0c3fe1af720577248aae7d9ad6e6f Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Wed, 9 Jan 2019 12:44:41 -0600 Subject: [PATCH] bug fix --- init.sh | 1 - src/api/index.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/init.sh b/init.sh index ca96ee9..728291e 100644 --- a/init.sh +++ b/init.sh @@ -31,7 +31,6 @@ start(){ } stop(){ ps -eo pid,command|grep python|grep -E "$PWD"|grep index.py|grep -E "^ {0,}[0-9]+" -o |xargs kill -9 - ps -eo pid,command|grep python|grep -E "$PWD"|grep data-collector|grep -E "^ {0,}[0-9]+" -o |xargs kill -9 } status(){ diff --git a/src/api/index.py b/src/api/index.py index 48a0c66..7b9a2ac 100755 --- a/src/api/index.py +++ b/src/api/index.py @@ -110,7 +110,7 @@ def plot_dashboard(id,node): This function will plot a given app/folder/node """ - session['key'] = 'cus_D2x3ItYNfWjSY3' + if 'key' in session and id in ['paid','free']: args = {"type":SYS_STORE['class']['read'],"args":SYS_STORE['args']} reader = factory.instance(**args)