Commit Graph

120 Commits

Author SHA1 Message Date
aba532aaae now can show Lost books from menu 2023-07-07 22:45:44 +10:00
133967062f fixed BUG-44 - empty message but still triggers if to say there is a message (shows as BUT) 2023-07-07 18:37:08 +10:00
56ae9d81ae fixed BUG-30 duplicate authors 2023-07-05 22:20:08 +10:00
7edc4babd9 fixed BUG-31 - ordering multiple series for a book 2023-07-05 21:28:49 +10:00
e10191808a fixed BUG-36 -- form value for owned was not an int, so comparison was failing, fixed now 2023-07-05 20:10:28 +10:00
0803c3cf22 remove loaned books from books on shelf - fixes BUG-38 2023-07-05 20:00:28 +10:00
3564334a76 new sqlaclhemy needs separated .join()s 2023-07-05 19:44:50 +10:00
0d48053a6d created OrderBooks covenience function, then didnt use it elsewhere ;) 2023-07-04 22:21:32 +10:00
867924fa60 remove use of sql direct for insert into, delete from AND fix bug with parent variable not being set before use - this bug must have been there a while untested AND push FLASK_ENV into config for container, development mode so we can show it better in navbar 2023-07-02 12:57:49 +10:00
1db94434d5 convert over to classes for all DB tables, it was just my lack of understanding when I first used sqlalchemy 2023-07-02 10:45:17 +10:00
a72912b15f fixed BUG-33 - complex book/sub_book/series addition 2023-07-01 16:06:55 +10:00
d4d37b96e3 fix dataTables ordering when I dont expect it to for books on shelf view 2023-07-01 15:11:00 +10:00
6cef2e0d9c converted over to bal from author, and fixed up the way sub books / series interact 2023-07-01 14:29:15 +10:00
ae2453d073 fixed BUGS 28/29 -> can now have empty year_published, fixed up limits to 1850-2100 now too and better error messages. Also auto-change when choose wishlist 2023-06-13 18:53:03 +10:00
9e4ee74775 made explicit the difference between development and conatiner in wrapper (and docker-compose) so that we can run FLASK on port 5000 using db on localhost 55432. bookdb_webdev is a container, running on port 5001 and using bookdb_dev container on port 5432 2023-06-13 00:27:10 +10:00
668d4d994e fixed BUG-26 (saving with a series), and added a bookdb_webdev container that maps ~/src/pybook to /pybook_mapped_volume. Then start a single threaded, reloading, output capturing gunicorn via wraper.sh if in DEV, otherwise normal gunicorn if in PROD - gives me an idnentical dev in a container to prod. 2023-06-12 20:44:28 +10:00
66378766aa fix BUG-25 by using ORM not db calls direct, could not see why they worked in DEV but not PROD with NO logs - only assume sqlachemy2 doesnt like the engine execute code I used instead 2023-06-11 21:48:01 +10:00
48c2c564d3 final books on shelf fix, start out by title, so books not in series are by title (and those in and out of series are by title until a series is reached, then its by series number until the series is finished, then back to title) 2023-06-11 15:36:39 +10:00
9f5e9ff3c2 fix BUG-23 (subbook/series confusion), also remove warnings about sql alchemy overlaps, and had to fix bug I introduced when editing a book where the drop-downs no longer had content based on data in form, and stopped messing with books list when iterating over it, python != c :) so using another list called processed to know if the books do not need to be processed (again) - this finally fixed books on shelf 2023-06-11 14:22:08 +10:00
196f758372 fixed bug where when you remove a sub_book it left a whole in sub_book_num's, and rewrote to new sqlalchemy 2, all the direct sqls 2023-06-11 11:23:48 +10:00
4223b81641 fixed up using selects before the app was ready, something that happens in the newer gunicorn but seemingly not flask? also removed compress at least for Dev testing 2023-06-11 00:28:30 +10:00
07d713da15 now handle series book numbering in the books on shelf page. Fixes BUG-22 2023-06-10 23:58:12 +10:00
e6ce558665 fix BUG-19 - unrated books, used wrong table joins 2022-07-06 22:38:09 +10:00
c31ae71dee fixed add/rem author funtionality for bs5 and converted to svg icons away from fontawesome 2022-07-04 22:25:35 +10:00
c29f73f8ab make all this have a login page, use ldap, put a logo on, moved some upstream stuff to static/ -- need to do more here to be consistent with bootstrap 5, but for another day 2022-06-19 22:45:54 +10:00
4725f006bc fixed Dockerfile - I only needed to expose 443, not sure what I was thinking mashing this web code with DB, anyway... also switched to using env var rather than hostname to pick up DEV/PROD, and now show that in base.html. Updated Dockerfile and requirements to prep for putting ldap/auth in, will need to copy some stuff from PA later. finally removed console debugs in book.html 2022-06-19 16:15:51 +10:00
e4ed563245 renamed ClearMessage to better name of ClearStatus, and exposed it to jinja2 so status messages now work in base.html 2021-01-10 12:18:28 +11:00
6f5b65788d Fixed BUG-02 (recalc rating on book change), also added route to reset all ratings in Admin menu 2021-01-10 11:10:49 +11:00
35d92e0ab6 Fixed BUG-18 -> cannot find book 2021-01-10 00:21:50 +11:00
8dc903c67d fixed BUG-17 change parent and subs werent, now are. Also removed len(child/parent) and used functions IsChild(), IsParent() as I should have 2021-01-09 23:07:18 +11:00
69607db413 completed TODO-09: list of books to buy - no printable, I can just get live data on phone anyway 2021-01-09 22:39:00 +11:00
b35d0b0088 fixed undocd BUG, where book sold is parent book in series messing with missing books code 2021-01-09 22:07:00 +11:00
0432f46b20 altered book delete status to success, completed TODO-05 (books must be sold to be deleted - with tooltip to explain), and added new BUG-17 - changing some fields of parent book need to be reflected into sub book 2021-01-09 22:00:08 +11:00
e923709663 completed: TODO-27 dealing with series with only sold books not shown in missing list 2021-01-09 21:28:31 +11:00
bccfbadb39 fixed books on shelf BUG-16 - author missing, its now using ORM with a HACK to remove subs not via ORM, and I also fixed datatable sorting by author for books on shelf via a param past into base.html 2021-01-09 16:54:37 +11:00
40e2ac1a34 TODO-28 - completed and used to reduce unwanted cols for on wish list, and add rating for poor rating books 2021-01-09 15:32:55 +11:00
cd7a77ff6b completed TODOs 13, 14, 15, 16 - views of subsets of books. Added 2 new TODOs to enhance their output / make the views better 2021-01-09 01:13:26 +11:00
a6211928df completed TODO-12: missing books 2021-01-09 00:45:10 +11:00
94ddee7791 completed TODO-11 (unrated books) 2021-01-08 22:43:48 +11:00
d153c40c17 completed -- TODO-08: show books on shelf list, and clarified install instructions for README 2021-01-08 22:29:27 +11:00
797a281820 fixed BUG-15 - https doing http submits, also required traefik config in docker-compose.yml - to create a tcp router with ssl passthrough 2021-01-08 13:14:09 +11:00
bed04f88f9 TODO-24 (in docker) DONE 2021-01-08 12:09:22 +11:00
e4606cdbeb for now, we have a bookdb docker container with content and referenced in main.py 2021-01-07 22:41:53 +11:00
995c19613e fixed TODO-23 (moving book in 2 series). also put db change in a try/except and cleaned up comments 2021-01-07 20:52:17 +11:00
2c1521e0b0 fixed new BUG where adding a sub-book to a parent with a series could not work out book_num 2021-01-07 19:10:22 +11:00
860a85e3ae can now remove just 1 sub book - TODO-25 -- DONE 2021-01-07 18:58:07 +11:00
9560381a87 completed: TODO-22: adding a sub-book when the parent book is in a series, and renamed MAYBE-1 to TODO-23 (deal with moving book in a series with another series involved), 24 (dockerise), 25 (actually allow removing just one subbook form series) 2021-01-07 16:02:04 +11:00
cc8d8c30c1 removed debugs, reply with 200 OK instead of redirect that is ignored anyway 2021-01-06 23:31:19 +11:00
9617186279 TODO 3 and 4 finished. removing parent or sub books from series handled 2021-01-06 23:26:10 +11:00
d43dabff9b fix (new) BUG where removing a parent book from a series caused error with bsl-book-num missing. Also flagged 2 spots for dealing with removing parent/child books from a series better, and stopped any attempt to for now 2021-01-06 20:39:51 +11:00