Skip to content

Commit 803eb89

Browse files
johanlundbergc00kiemon5ter
authored andcommitted
collection.remove has been removed in pymongo >=4
1 parent 27a39d2 commit 803eb89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/saml2/mongo_store.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def remove_authn_statements(self, name_id):
9999
logger.debug("remove authn about: %s", name_id)
100100
key = sha1(code_binary(name_id)).hexdigest()
101101
for item in self.assertion.find({"name_id_key": key}):
102-
self.assertion.remove(item["_id"])
102+
self.assertion.delete_one(item["_id"])
103103

104104
def get_authn_statements(self, name_id, session_index=None, requested_context=None):
105105
"""

0 commit comments

Comments
 (0)