fix ui on depmand

This commit is contained in:
j 2016-01-13 22:09:25 +05:30
parent cd949c4f20
commit 76bf80f395

View file

@ -44,6 +44,10 @@ def init(data):
response['user']['id'] = settings.USER_ID
response['user']['online'] = state.online
if settings.ui:
for f in settings.ui['filters']:
if f['id'] == 'classification':
f['id'] = 'categories'
settings.ui._save()
response['user']['ui'] = settings.ui
return response
actions.register(init)