From 8ce9b9a84b7e05610b7dca71c3f29ba955fc78fd Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Thu, 19 Jun 2025 10:53:25 +0900 Subject: Only publish entries from the past --- src/scadere/listen.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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): -- cgit 1.4.1