aboutsummaryrefslogtreecommitdiff
path: root/src/mailman_pgp/runners
diff options
context:
space:
mode:
authorJ08nY2017-06-22 15:54:00 +0200
committerJ08nY2017-06-22 15:54:00 +0200
commit54aa6d86be743b6a0f640cd68b25938d02e3dfd7 (patch)
tree1a3dddf828e8ef7f055a02e26b2bcde48db86719 /src/mailman_pgp/runners
parent50df74e60b5f67b18470133efd68629d7667d0b0 (diff)
downloadmailman-pgp-54aa6d86be743b6a0f640cd68b25938d02e3dfd7.tar.gz
mailman-pgp-54aa6d86be743b6a0f640cd68b25938d02e3dfd7.tar.zst
mailman-pgp-54aa6d86be743b6a0f640cd68b25938d02e3dfd7.zip
Diffstat (limited to 'src/mailman_pgp/runners')
-rw-r--r--src/mailman_pgp/runners/incoming.py2
-rw-r--r--src/mailman_pgp/runners/outgoing.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mailman_pgp/runners/incoming.py b/src/mailman_pgp/runners/incoming.py
index 1c602b1..e059c28 100644
--- a/src/mailman_pgp/runners/incoming.py
+++ b/src/mailman_pgp/runners/incoming.py
@@ -35,7 +35,7 @@ class IncomingRunner(Runner):
"""See `IRunner`."""
# Is the message for an encrypted mailing list? If not, pass to default
# incoming runner. If yes, go on.
- encrypted_list = query(PGPMailingList).filter_by(
+ encrypted_list = PGPMailingList.query().filter_by(
list_id=mlist.list_id).first()
if not encrypted_list:
inq = config.get('queues', 'in')
diff --git a/src/mailman_pgp/runners/outgoing.py b/src/mailman_pgp/runners/outgoing.py
index 0fc9378..92a765d 100644
--- a/src/mailman_pgp/runners/outgoing.py
+++ b/src/mailman_pgp/runners/outgoing.py
@@ -32,7 +32,7 @@ from mailman_pgp.model.list import PGPMailingList
class OutgoingRunner(Runner):
def _dispose(self, mlist: MailingList, msg: Message, msgdata: dict):
"""See `IRunner`."""
- encrypted_list = query(PGPMailingList).filter_by(
+ encrypted_list = PGPMailingList.query().filter_by(
list_id=mlist.list_id).first()
if not encrypted_list:
outq = config.get('queues', 'out')