summaryrefslogtreecommitdiff
path: root/src/mailman/model/requests.py
diff options
context:
space:
mode:
authorBarry Warsaw2017-01-08 23:21:15 -0500
committerBarry Warsaw2017-01-08 23:21:15 -0500
commita01ef2bac4d52da67e4be1fccc2634086aaa03e3 (patch)
treee077c807084e5f15ea92f4748ffa6bf7e2df92f7 /src/mailman/model/requests.py
parent7b3b9d37f94f744c863b6b96f2d75a558357e397 (diff)
downloadmailman-a01ef2bac4d52da67e4be1fccc2634086aaa03e3.tar.gz
mailman-a01ef2bac4d52da67e4be1fccc2634086aaa03e3.tar.zst
mailman-a01ef2bac4d52da67e4be1fccc2634086aaa03e3.zip
Diffstat (limited to 'src/mailman/model/requests.py')
-rw-r--r--src/mailman/model/requests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mailman/model/requests.py b/src/mailman/model/requests.py
index 0c164172d..90d1c686c 100644
--- a/src/mailman/model/requests.py
+++ b/src/mailman/model/requests.py
@@ -142,10 +142,10 @@ class ListRequests:
@dbconnection
def clear(self, store):
- for pended_token in getUtility(IPendings).find(
+ for token, pendable in getUtility(IPendings).find(
mlist=self.mailing_list,
confirm=False):
- pended = store.query(Pended).filter_by(token=pended_token).first()
+ pended = store.query(Pended).filter_by(token=token).first()
store.query(PendedKeyValue).filter_by(pended_id=pended.id).delete()
store.delete(pended)