diff options
| author | J08nY | 2025-12-09 12:11:39 +0100 |
|---|---|---|
| committer | J08nY | 2025-12-09 12:11:39 +0100 |
| commit | e45812df9f302ab22df96ef6b19838cdd7c2fb63 (patch) | |
| tree | cff856e3dd70da372a87263e974377f1b4ae6096 /sec_certs_page/common/tasks/notify.py | |
| parent | 25d92e603feb8a5fcf93a589d8bc29e11926a443 (diff) | |
| download | sec-certs-page.tar.gz sec-certs-page.tar.zst sec-certs-page.zip | |
Fix and add tests for new certificate subscription.page
Diffstat (limited to 'sec_certs_page/common/tasks/notify.py')
| -rw-r--r-- | sec_certs_page/common/tasks/notify.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sec_certs_page/common/tasks/notify.py b/sec_certs_page/common/tasks/notify.py index 3bb5b697..5d26ad70 100644 --- a/sec_certs_page/common/tasks/notify.py +++ b/sec_certs_page/common/tasks/notify.py @@ -84,9 +84,9 @@ class Notifier(DiffRenderer): def _collect_usernames(self, change_dgsts, new_dgsts): change_sub_emails = mongo.db.subs.find( - {"certificate.hashid": {"$in": change_dgsts}, "certificate.type": self.collection}, + {"type": "changes", "certificate.hashid": {"$in": change_dgsts}, "certificate.type": self.collection}, ) - new_sub_emails = mongo.db.subs.find({"updates": "new", "which": self.collection}) + new_sub_emails = mongo.db.subs.find({"type": "new", "which": self.collection}) return {sub["username"] for sub in change_sub_emails} | {sub["username"] for sub in new_sub_emails} def _load_bootstrap_parsed(self): |
