fix smart list update for nested queries

This commit is contained in:
j 2016-01-08 10:50:03 +05:30
parent 6a9758f702
commit 664fc702c2
1 changed files with 1 additions and 1 deletions

View File

@ -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]