diff --git a/oml/user/api.py b/oml/user/api.py index e5dae03..dadbb90 100644 --- a/oml/user/api.py +++ b/oml/user/api.py @@ -38,6 +38,7 @@ def init(data): config = {} response['config'] = config response['user'] = deepcopy(config['user']) + response['version'] = settings.MINOR_VERSION if settings.preferences: response['user']['preferences'] = settings.preferences response['user']['id'] = settings.USER_ID diff --git a/static/js/oml.js b/static/js/oml.js index efc91d3..02b265f 100644 --- a/static/js/oml.js +++ b/static/js/oml.js @@ -35,7 +35,8 @@ Ox.extend(oml, { $ui: {}, config: data.config, - user: data.user + user: data.user, + version: data.version }); ['preferences', 'ui'].forEach(function(key) { // make sure all valid settings are present