diff options
Diffstat (limited to 'src/mailman/model/requests.py')
| -rw-r--r-- | src/mailman/model/requests.py | 4 |
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) |
