Update server.py

This commit is contained in:
Neythen Treloar 2021-12-08 16:57:45 +00:00 committed by GitHub
parent 60b90b8def
commit d02cde7682
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()