diff options
| author | J08nY | 2017-06-22 19:17:21 +0200 |
|---|---|---|
| committer | J08nY | 2017-06-22 19:17:21 +0200 |
| commit | e74efa507117bd449695bfc9dc1fb3ed473fd3eb (patch) | |
| tree | 1bd811ab7b4b5c78ced27c7f05d871f861e9ba86 /src/mailman_pgp/plugin.py | |
| parent | 5014e7a75f02f8c707847122ff43b37064247a43 (diff) | |
| download | mailman-pgp-e74efa507117bd449695bfc9dc1fb3ed473fd3eb.tar.gz mailman-pgp-e74efa507117bd449695bfc9dc1fb3ed473fd3eb.tar.zst mailman-pgp-e74efa507117bd449695bfc9dc1fb3ed473fd3eb.zip | |
Diffstat (limited to 'src/mailman_pgp/plugin.py')
| -rw-r--r-- | src/mailman_pgp/plugin.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mailman_pgp/plugin.py b/src/mailman_pgp/plugin.py index d3974d1..2a8207c 100644 --- a/src/mailman_pgp/plugin.py +++ b/src/mailman_pgp/plugin.py @@ -52,9 +52,9 @@ class PGPMailman: @classhandler.handler(ListDeletedEvent) def on_delete(mlist): - encrypted_list = PGPMailingList.query().filter_by( + pgp_list = PGPMailingList.query().filter_by( list_id=mlist.list_id).first() - if encrypted_list: + if pgp_list: with transaction() as session: # TODO shred the list key - session.delete(encrypted_list) + session.delete(pgp_list) |
