aboutsummaryrefslogtreecommitdiff
path: root/.gitignore (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Allow new submissions (supports uploads)Runxi Yu2024-05-301-0/+1
| | | | | | | Note that there is a typing error that I haven't fixed in login_required that needs to be solved sometime. References: https://todo.sr.ht/~runxiyu/fbfp/6
* Use Flask-SQLAlchemy instead; add basic html/cssRunxi Yu2024-05-291-0/+2
| | | | | | | | | SQLAlchemy sessions are way too hard to handle with this insane modules layout. This commit makes everything use Flask-SQLAlchemy. This commit also creates a simple index.html and adds some CSS. References: https://todo.sr.ht/~runxiyu/fbfp/2
* Add pyproject.toml and initialize SQLAlchemyRunxi Yu2024-05-291-0/+3
| | | | | | | | | I think using SQLAlchemy will be a bit more convenient than using plain mariadb/sqlite3 bindings, and apparently I figured out how to get mypy happy with SQLAlchemy 2.0. I don't really want to use Flask-SQLAlchemy as I don't want that much vendor lock-in.
* Add a dummy login_required function for developmentRunxi Yu2024-05-281-0/+1
I haven't thought of how to structure deployments yet. As I'm planning to import this under a sub-path in an existing site, it makes the most sense to use a blueprint. But I also want this to be able to run as a standalone app. Part of the issue is that I need to pass in a login_required decorator from outside. See the referenced ticket. References: https://todo.sr.ht/~runxiyu/fbfp/1