fixed api caller bug in server

This commit is contained in:
Neythen Treloar 2022-02-21 18:38:05 +00:00
parent b9d4ca9122
commit 82d22d6468

View File

@ -177,7 +177,8 @@ def start():
if displaying_screensaver: if displaying_screensaver:
screensaver_p.close() screensaver_p.close()
ticker = pexpect.spawn("sudo -E python3 stockTicker.py") 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 displaying_screensaver = False
api_caller.sendline('A') api_caller.sendline('A')
@ -202,7 +203,8 @@ def stop():
if displaying_screensaver: if displaying_screensaver:
screensaver_p.close() screensaver_p.close()
ticker = pexpect.spawn("sudo -E python3 stockTicker.py") 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 displaying_screensaver = False
return index() return index()