Skip to content

Commit d28c21e

Browse files
authored
fix: WOQLQuery.substr (#372)
1 parent 9b44f9c commit d28c21e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

terminusdb_client/woqlquery/woql_query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1257,7 +1257,7 @@ def substr(self, string, length, substring, before=0, after=0):
12571257
if not substring:
12581258
substring = length
12591259
length = len(substring) + before
1260-
if not string or not substring or type(substring) != type:
1260+
if not string or not substring or type(substring) != str:
12611261
raise ValueError(
12621262
"Substr - the first and last parameters must be strings representing the full and substring variables / literals"
12631263
)

0 commit comments

Comments
 (0)