diff options
author | Nguyễn Gia Phong <cnx@loang.net> | 2025-06-19 10:53:25 +0900 |
---|---|---|
committer | Nguyễn Gia Phong <cnx@loang.net> | 2025-06-19 10:53:25 +0900 |
commit | 8ce9b9a84b7e05610b7dca71c3f29ba955fc78fd (patch) | |
tree | c87d53dc91f172c3da9c25f78fee3df95728bd0a | |
parent | 65feb772f7f2ea9d42b4b308e91b982da602eeeb (diff) | |
download | scadere-8ce9b9a84b7e05610b7dca71c3f29ba955fc78fd.tar.gz |
Only publish entries from the past
-rw-r--r-- | src/scadere/listen.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/scadere/listen.py b/src/scadere/listen.py index 05fa199..3c44407 100644 --- a/src/scadere/listen.py +++ b/src/scadere/listen.py @@ -119,6 +119,7 @@ def entry(base_url, cert): if not_before is None else f'TLS cert for {hostname} will expire at {not_after}') author = 'Scadere' if not_before is None else string + updated = not_after if not_before is None else not_before return ('entry', ('author', ('name', author)), ('content', {'type': 'xhtml'}, @@ -128,7 +129,7 @@ def entry(base_url, cert): 'type': 'application/xhtml+xml', 'href': url}), ('title', title), - ('updated', not_after)) + ('updated', updated)) def split_domain(domain): |