We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52647d9 commit b676de3Copy full SHA for b676de3
1 file changed
terminusdb_client/woqlquery/woql_query.py
@@ -333,11 +333,10 @@ def _wfrom(self, opts):
333
334
def _arop(self, arg):
335
"""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
+ if hasattr(arg, "to_dict"):
+ return arg.to_dict()
+ elif type(arg) is dict:
+ return arg
341
var = self._clean_arithmetic_value(arg, "xsd:decimal")
342
return var
343
0 commit comments