professional diaply working

This commit is contained in:
Neythen
2021-11-22 19:19:26 +00:00
parent e1e17d0df2
commit badcfb47e1
13 changed files with 13 additions and 20 deletions

View File

@@ -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]