set oml.version

This commit is contained in:
j 2016-01-10 19:23:29 +05:30
parent cda61c5560
commit cc3a394dd5
2 changed files with 3 additions and 1 deletions

View file

@ -38,6 +38,7 @@ def init(data):
config = {} config = {}
response['config'] = config response['config'] = config
response['user'] = deepcopy(config['user']) response['user'] = deepcopy(config['user'])
response['version'] = settings.MINOR_VERSION
if settings.preferences: if settings.preferences:
response['user']['preferences'] = settings.preferences response['user']['preferences'] = settings.preferences
response['user']['id'] = settings.USER_ID response['user']['id'] = settings.USER_ID

View file

@ -35,7 +35,8 @@
Ox.extend(oml, { Ox.extend(oml, {
$ui: {}, $ui: {},
config: data.config, config: data.config,
user: data.user user: data.user,
version: data.version
}); });
['preferences', 'ui'].forEach(function(key) { ['preferences', 'ui'].forEach(function(key) {
// make sure all valid settings are present // make sure all valid settings are present