gvwilson / web-tutorial

Web Programming for Data Scientists
https://gvwilson.github.io/web-tutorial/
Other
9 stars 0 forks source link

fix: fix /heartbeat HTTP/500 error. Remove unused imports. #47

Closed juananpe closed 3 months ago

juananpe commented 3 months ago

Fix linting errors For the heartbeat fix, maybe you might prefer to create another html template and call it from _use_template I can merge the pull request myself (thanks for giving me writing permissions, but I'm not sure about the heartbeat fix)

gvwilson commented 3 months ago

I'd been leaving the heartbeat as an f-string instead of render_template_string because I'm in the habit of either using a file-based template or a simple f-string to discourage myself from creating complex inline templates. I'll merge this and we can discuss in #48. Thanks as always - the new version of mccole is up (0.2.2).