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:
parent
7edb246b1e
commit
c36d1813ee
@ -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):
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user