From cc3a394dd51af4d45dad9a0771f8fadd81698dea Mon Sep 17 00:00:00 2001 From: j Date: Sun, 10 Jan 2016 19:23:29 +0530 Subject: [PATCH] set oml.version --- oml/user/api.py | 1 + static/js/oml.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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