diff options
Diffstat (limited to 'src/mailman/model/pending.py')
| -rw-r--r-- | src/mailman/model/pending.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mailman/model/pending.py b/src/mailman/model/pending.py index 77b68bd2d..8eb2ab8ba 100644 --- a/src/mailman/model/pending.py +++ b/src/mailman/model/pending.py @@ -128,7 +128,7 @@ class Pendings: return token @dbconnection - def confirm(self, store, token, expunge=True): + def confirm(self, store, token, *, expunge=True): # Token can come in as a unicode, but it's stored in the database as # bytes. They must be ascii. pendings = store.query(Pended).filter_by(token=str(token)) @@ -165,3 +165,7 @@ class Pendings: for keyvalue in q: store.delete(keyvalue) store.delete(pending) + + @dbconnection + def count(self, store): + return store.query(Pended).count() |
