Update server.py
This commit is contained in:
parent
60b90b8def
commit
d02cde7682
@ -256,11 +256,11 @@ def brightness():
|
||||
print(settings)
|
||||
brightness =settings['brightness']
|
||||
|
||||
ticker.sendline(str(int(brightness)))
|
||||
ticker.sendline(str(int(brightness)-1))
|
||||
|
||||
general_settings = json.load(open('csv/general_settings.json', 'r'))
|
||||
|
||||
general_settings['brightness'] = int(brightness)
|
||||
general_settings['brightness'] = int(brightness)-1
|
||||
json.dump(general_settings, open('csv/general_settings.json', 'w+'))
|
||||
return index()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user