Skip to content

Commit 2767970

Browse files
committed
Ensure list operator produces canonical woql
1 parent 93986a7 commit 2767970

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

terminusdb_client/woqlquery/woql_query.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -411,9 +411,10 @@ def _clean_object(self, user_obj, target=None):
411411
obj["node"] = user_obj
412412
elif type(user_obj) is list:
413413
elts = []
414-
for obj in user_obj:
415-
elts.append(self._clean_object(obj))
416-
return elts
414+
for item in user_obj:
415+
elts.append(self._clean_object(item))
416+
obj["list"] = elts
417+
return obj
417418
elif isinstance(user_obj, Var):
418419
return self._expand_value_variable(user_obj)
419420
elif isinstance(user_obj, Doc):

0 commit comments

Comments
 (0)