~sircmpwn/cgi-scripts

18fb8e286330cc19782211b7266636c98eacdf14 — Drew DeVault 4 years ago 5bb8b78
Fix cache expiry
1 files changed, 1 insertions(+), 1 deletions(-)

M hn.py
M hn.py => hn.py +1 -1
@@ 21,7 21,7 @@ if not path or path == "/":
    posts = None
    if cache:
        date = datetime.fromtimestamp(cache["date"])
        if date < datetime.now() + timedelta(seconds=300):
        if date < datetime.now() - timedelta(seconds=300):
            posts = cache["posts"]

    if not posts: