From 87abcafdc82e35b211a40bca96c609093eaa1c84 Mon Sep 17 00:00:00 2001 From: Jayaram R Pai Date: Tue, 9 Sep 2014 19:19:12 +0530 Subject: added contributor details display --- website/helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'website/helpers.py') diff --git a/website/helpers.py b/website/helpers.py index 20ef288..e11cfb3 100644 --- a/website/helpers.py +++ b/website/helpers.py @@ -17,7 +17,7 @@ def scilab_run(code, token, book_id, dependency_exists): plot_exists = False #Finding the plot and appending xs2jpg function - p = re.compile(r'.*plot.*\(.*,.*,*\).*\n|bode\(.*,.*\)') + p = re.compile(r'.*plot.*\(.*\).*\n|bode\(.*\)') plot_path = '' if p.search(code): @@ -49,7 +49,7 @@ def scilab_run(code, token, book_id, dependency_exists): cmd = 'printf "exec(\'{0}\',2);\nquit();"'.format(file_path) cmd += ' | /home/cheese/scilab-5.4.1/bin/scilab-adv-cli -nw' - task = TimerTask(cmd, timeout=10) + task = TimerTask(cmd, timeout=15) output = task.run().communicate()[0] e = task.wait() -- cgit