From ba8e0298ad259351493d340d699398be33b1f4fe Mon Sep 17 00:00:00 2001 From: j Date: Wed, 26 Sep 2018 09:48:39 +0200 Subject: [PATCH] fix nested queries --- pandora/clip/managers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora/clip/managers.py b/pandora/clip/managers.py index f4c92416..7998bf03 100644 --- a/pandora/clip/managers.py +++ b/pandora/clip/managers.py @@ -111,7 +111,8 @@ def parseConditions(conditions, operator, user): q = parseConditions(condition['conditions'], condition.get('operator', '&'), user) if q: - conn.append(q) + for conn_ in q: + conn.append(conn_) pass else: conn.append(parseCondition(condition, user))