Skip to content

Commit

Permalink
collection.remove has been removed in pymongo >=4
Browse files Browse the repository at this point in the history
  • Loading branch information
johanlundberg authored and c00kiemon5ter committed Dec 23, 2022
1 parent 27a39d2 commit 803eb89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/saml2/mongo_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def remove_authn_statements(self, name_id):
logger.debug("remove authn about: %s", name_id)
key = sha1(code_binary(name_id)).hexdigest()
for item in self.assertion.find({"name_id_key": key}):
self.assertion.remove(item["_id"])
self.assertion.delete_one(item["_id"])

def get_authn_statements(self, name_id, session_index=None, requested_context=None):
"""
Expand Down

0 comments on commit 803eb89

Please sign in to comment.