Skip to content

Commit b676de3

Browse files
committed
Fix the arop that serialized values incorrectly
1 parent 52647d9 commit b676de3

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

terminusdb_client/woqlquery/woql_query.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -333,11 +333,10 @@ def _wfrom(self, opts):
333333

334334
def _arop(self, arg):
335335
"""Wraps arithmetic operators in the appropriate json-ld"""
336-
if type(arg) is dict:
337-
if hasattr(arg, "to_dict"):
338-
return arg.to_dict()
339-
else:
340-
return arg
336+
if hasattr(arg, "to_dict"):
337+
return arg.to_dict()
338+
elif type(arg) is dict:
339+
return arg
341340
var = self._clean_arithmetic_value(arg, "xsd:decimal")
342341
return var
343342

0 commit comments

Comments
 (0)