~edwargix/git.sr.ht

acfb2b7f5bb2b197e66c9ed60312df0a4976a319 — Drew DeVault 7 years ago fffa8d0
Bump version of markdown cache

Should fix READMEs that are using GitHub-flavored markdown
1 files changed, 1 insertions(+), 1 deletions(-)

M gitsrht/blueprints/repo.py
M gitsrht/blueprints/repo.py => gitsrht/blueprints/repo.py +1 -1
@@ 29,7 29,7 @@ def get_readme(repo, tip):
    readme = tip.tree["README.md"]
    if readme.type != "blob":
        return None
    key = f"git.sr.ht:git:markdown:{readme.id.hex}:v2"
    key = f"git.sr.ht:git:markdown:{readme.id.hex}:v3"
    html = redis.get(key)
    if html:
        return Markup(html.decode())