Skip to content

Commit

Permalink
Update json_store.py
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesLichtenberger authored Feb 6, 2024
1 parent 6d6977c commit 33f30bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pysirix/json_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def delete_records(self, query_dict: Dict) -> Union[str, Awaitable[str]]:
f"{query_function_include}"
f"let $doc := jn:doc('{self.db_name}','{self.name}'){self.root}"
f" let $m := for $i at $pos in $doc where local:q($i, {stringify(query_dict)}) return $pos - 1"
" for $i in $m order by $i descending return delete json $doc[[$i]]"
" for $i in $m order by $i descending return delete json $doc[$i]"
)
return self._client.post_query({"query": query})

Expand Down

0 comments on commit 33f30bb

Please sign in to comment.