diff options
| author | J08nY | 2017-06-22 15:49:20 +0200 |
|---|---|---|
| committer | J08nY | 2017-06-22 15:49:20 +0200 |
| commit | 50df74e60b5f67b18470133efd68629d7667d0b0 (patch) | |
| tree | 54977e38717dd28573c402f66d23068224e9f073 /src/mailman_pgp/rest | |
| parent | 6f513b5b8dd6229b4ebc84911c1cd0d42f1701e2 (diff) | |
| download | mailman-pgp-50df74e60b5f67b18470133efd68629d7667d0b0.tar.gz mailman-pgp-50df74e60b5f67b18470133efd68629d7667d0b0.tar.zst mailman-pgp-50df74e60b5f67b18470133efd68629d7667d0b0.zip | |
Diffstat (limited to 'src/mailman_pgp/rest')
| -rw-r--r-- | src/mailman_pgp/rest/lists.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mailman_pgp/rest/lists.py b/src/mailman_pgp/rest/lists.py index 29d510d..0853a35 100644 --- a/src/mailman_pgp/rest/lists.py +++ b/src/mailman_pgp/rest/lists.py @@ -23,7 +23,7 @@ from public import public from mailman_pgp.config import config from mailman_pgp.database import query -from mailman_pgp.model.list import EncryptedMailingList +from mailman_pgp.model.list import PGPMailingList class _EncryptedBase(CollectionMixin): @@ -44,7 +44,7 @@ class _EncryptedBase(CollectionMixin): def _get_collection(self, request): """See `CollectionMixin`.""" - return query(EncryptedMailingList).all() + return query(PGPMailingList).all() @public @@ -58,7 +58,7 @@ class AllEncryptedLists(_EncryptedBase): @public class AnEncryptedList(_EncryptedBase): def __init__(self, list_id): - self._mlist = query(EncryptedMailingList).filter_by( + self._mlist = query(PGPMailingList).filter_by( list_id=list_id).first() def on_get(self, request, response): |
