From 82d22d6468e35145ad8d59ed12fa8c683e50f0d6 Mon Sep 17 00:00:00 2001 From: Neythen Treloar Date: Mon, 21 Feb 2022 18:38:05 +0000 Subject: [PATCH] fixed api caller bug in server --- server.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server.py b/server.py index a3b1a17..1dde748 100755 --- a/server.py +++ b/server.py @@ -177,7 +177,8 @@ def start(): if displaying_screensaver: screensaver_p.close() ticker = pexpect.spawn("sudo -E python3 stockTicker.py") - api_caller = pexpect.spawn("sudo -E taskset -c 3 python3 api_caller.py") + #api_caller = pexpect.spawn("sudo -E taskset -c 3 python3 api_caller.py") + api_caller = pexpect.spawn("sudo -E taskset -c 3 python3 database_caller.py") displaying_screensaver = False api_caller.sendline('A') @@ -202,7 +203,8 @@ def stop(): if displaying_screensaver: screensaver_p.close() ticker = pexpect.spawn("sudo -E python3 stockTicker.py") - api_caller = pexpect.spawn("sudo -E taskset -c 3 python3 api_caller.py") + #api_caller = pexpect.spawn("sudo -E taskset -c 3 python3 api_caller.py") + api_caller = pexpect.spawn("sudo -E taskset -c 3 python3 database_caller.py") displaying_screensaver = False return index()