Skip to content

Commit 33f30bb

Browse files
Update json_store.py
1 parent 6d6977c commit 33f30bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pysirix/json_store.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ def delete_records(self, query_dict: Dict) -> Union[str, Awaitable[str]]:
349349
f"{query_function_include}"
350350
f"let $doc := jn:doc('{self.db_name}','{self.name}'){self.root}"
351351
f" let $m := for $i at $pos in $doc where local:q($i, {stringify(query_dict)}) return $pos - 1"
352-
" for $i in $m order by $i descending return delete json $doc[[$i]]"
352+
" for $i in $m order by $i descending return delete json $doc[$i]"
353353
)
354354
return self._client.post_query({"query": query})
355355

0 commit comments

Comments
 (0)