Skip to content

Commit

Permalink
abnosql_check_exists=False on cosmos delete bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rog555 committed Oct 9, 2023
1 parent da634cf commit 3391e25
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
Changelog
=========

## [v0.0.20] - 2023-10-09
- abnosql_check_exists=False on cosmos delete bug

## [v0.0.19] - 2023-10-09
- skip validation on cosmos delete

Expand Down
2 changes: 2 additions & 0 deletions abnosql/plugins/table/cosmos.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ def delete_item(self, **kwargs):
item = add_change_meta(
dict(**kwargs), self.name, 'REMOVE'
)
# don't check if exists when item created
item['abnosql_check_exists'] = False
# set update to False because would need key attrs defined if True
self.put_item(item, update=False)
# sleep defined number of seconds to allow time between
Expand Down
2 changes: 1 addition & 1 deletion abnosql/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '0.0.19'
__version__ = '0.0.20'


if __name__ == '__main__':
Expand Down

0 comments on commit 3391e25

Please sign in to comment.