1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-12-23 01:16:18 +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') user = Required(User, column = 'user_id')
client_name = Required(str, 32) client_name = Required(str, 32)
PrimaryKey(user, client_name) PrimaryKey(user, client_name)
format = Optional(str, 8) format = Optional(str, 8, nullable = True)
bitrate = Optional(int) bitrate = Optional(int)
class StarredFolder(db.Entity): class StarredFolder(db.Entity):

View File

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