simonw / til

Today I Learned

Home Page:https://til.simonwillison.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shot hash should include base template and CSS too

simonw opened this issue · comments

Screenshots currently won't be regenerated if I change the base template or modify the CSS:

# The shot_hash incorporates a hash of all of row.html
row_html_hash = hashlib.md5(
(root / "templates" / "row.html").read_text().encode("utf-8")
).hexdigest()