professional diaply working
This commit is contained in:
@@ -23,7 +23,7 @@ import numpy as np
|
||||
api_caller = pexpect.spawn("sudo -E python3 api_caller.py")
|
||||
displaying_screensaver = False
|
||||
screensaver_p = None
|
||||
professional = False
|
||||
professional = json.load(open('csv/display_settings.json', 'r'))[0] == "Professional"
|
||||
|
||||
command = 300
|
||||
tickerList = 0
|
||||
@@ -145,6 +145,13 @@ def start():
|
||||
data = str(request.data.decode('utf-8'))
|
||||
|
||||
input_settings = json.loads(data)
|
||||
print(input_settings)
|
||||
print(all_settings)
|
||||
if professional:
|
||||
input_settings[0] = [i for i in input_settings[0] if i in all_settings]
|
||||
input_settings[1] = [i for i in input_settings[1] if i in all_settings]
|
||||
|
||||
print(input_settings)
|
||||
|
||||
s = "Professional" if professional else "Standard"
|
||||
display_settings = [s] + [input_settings]
|
||||
|
Reference in New Issue
Block a user