Skip to content

Commit

Permalink
Add change armlevel names in settingspage
Browse files Browse the repository at this point in the history
  • Loading branch information
DewGew authored Nov 2, 2023
1 parent 6400672 commit c8e7be7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions modules/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def settings():
dbuser.domopass = request.form.get('domopass')
dbuser.roomplan = request.form.get('roomplan')
dbuser.password = request.form.get('uipassword') # Remove ?
dbuser.googleassistant = (request.form.get('googleassistant') == 'true') # Remove ?
dbuser.googleassistant = (request.form.get('googleassist') == 'true') # Remove ?

db.session.add(dbuser)
db.session.commit()
Expand All @@ -81,8 +81,10 @@ def settings():
dbsettings.use_ssl = (request.form.get('ssl') == 'true')
dbsettings.ssl_cert = request.form.get('sslcert')
dbsettings.ssl_key = request.form.get('sslkey')
# dbsettings.armhome = request.form.get('armhome')
# dbsettings.armaway = request.form.get('armaway')
armhome = request.form.get('armhome')
armaway = request.form.get('armaway')

dbsettings.armlevels.update({'armhome': armhome, 'armaway': armaway})

db.session.add(dbsettings)
db.session.commit()
Expand Down

0 comments on commit c8e7be7

Please sign in to comment.