Commit f647f14
committed
Update dependencies and add book index route
Updated `Pipfile.lock` to specify Python 3.8 and added
dependencies including `click`, `flask`, `itsdangerous`,
`jinja2`, `markupsafe`, `python-dotenv`, and `werkzeug`
with version constraints and hashes.
Added a new route in `routes.py` for the index page
that handles GET requests, retrieves query parameters
for `name`, `author`, and `read`, and executes SQL
queries to fetch and render books using the
`books.html` template.1 parent c6f4d20 commit f647f14
2 files changed
Lines changed: 159 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
0 commit comments