aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNguyễn Gia Phong <cnx@loang.net>2025-06-19 10:53:25 +0900
committerNguyễn Gia Phong <cnx@loang.net>2025-06-19 10:53:25 +0900
commit8ce9b9a84b7e05610b7dca71c3f29ba955fc78fd (patch)
treec87d53dc91f172c3da9c25f78fee3df95728bd0a /src
parent65feb772f7f2ea9d42b4b308e91b982da602eeeb (diff)
downloadscadere-8ce9b9a84b7e05610b7dca71c3f29ba955fc78fd.tar.gz
Only publish entries from the past
Diffstat (limited to 'src')
-rw-r--r--src/scadere/listen.py3
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):