From 664fc702c20f0ac4c70ada384d5312998ad2c8ca Mon Sep 17 00:00:00 2001 From: j Date: Fri, 8 Jan 2016 10:50:03 +0530 Subject: [PATCH] fix smart list update for nested queries --- oml/user/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oml/user/models.py b/oml/user/models.py index 34af39f..5fb6abc 100644 --- a/oml/user/models.py +++ b/oml/user/models.py @@ -241,7 +241,7 @@ class List(db.Model): changed = False for c in conditions: if 'conditions' in c: - changed = update_conditions(conditions) + changed = update_conditions(c['conditions'] ) else: if c.get('key') == 'list' and c.get('value', '').startswith('%s:' % old): c['value'] = '%s:%s' % new, c['value'].split(':', 1)[1]