removed fix_db, fixes.sql, and updated todo

This commit is contained in:
2020-11-17 21:30:51 +11:00
parent 4ee94337b2
commit f765a18327
3 changed files with 3 additions and 96 deletions

9
README
View File

@@ -14,19 +14,16 @@ sudo apt install python3-pip python3-psycopg2 libpq-dev
pip3 install --user flask sqlalchemy flask-sqlalchemy flask-marshmallow SQLAlchemy-serializer flask-wtf flask-bootstrap marshmallow-sqlalchemy
### fix up db changes by running those in fixes.sql
psql library
alter table genre_lst rename to genre;
alter table genre rename COLUMN genre to name;
# run the web server by:
python3 main.py
### TODO:
- fix up lame book linkages to tabels that are so not 3nf, *_LST tables, etc.
- ORM:
- saving a book with the ORM is probably the last oddity... probably time to try it (in a sense, the book edit page is the only time we change things, maybe we mess with that book-query as its too slow, and for book edit, if we don't allow editing items like author/publisher, then may only need to set the objects we want to change... I'm sort of curious can you save a book table based on id, without saging its author table, seems that should be okay, but how do I save both, just create 2 objects and do it, but what if the ORM has auto-connected bunches of stuff, how do I update the connected stuff.... MAYBE, I need to get say loan or something first, then try all this? (make a pop-up for stuff like loans, but what about series or sub-book editing????)
- should see if I can make the publisher, rating, covertype, condition, genre tables have generic .html files
- complete BookSchema(FlaskForm)
- use FlaskForm and newer technique in author.html (and the rest)
- consider getting rest of Book class connected, e.g. series, loan, etc.