1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-12-22 17:06:17 +00:00

Fixed setting client preferences

This commit is contained in:
spl0k 2018-01-16 19:45:28 +01:00
parent 7edb246b1e
commit c36d1813ee
2 changed files with 2 additions and 2 deletions

View File

@ -297,7 +297,7 @@ class ClientPrefs(db.Entity):
user = Required(User, column = 'user_id')
client_name = Required(str, 32)
PrimaryKey(user, client_name)
format = Optional(str, 8)
format = Optional(str, 8, nullable = True)
bitrate = Optional(int)
class StarredFolder(db.Entity):

View File

@ -84,7 +84,7 @@ def update_clients(uid, user):
continue
if client not in clients_opts:
clients_opts[client] = dict(opt = value)
clients_opts[client] = dict([ (opt, value) ])
else:
clients_opts[client][opt] = value
app.logger.debug(clients_opts)