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)