Commit Graph

312 Commits

Author SHA1 Message Date
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
5a81afd3d2 fixed BUG-39 (loan card in wrong spot, now fixed) 2023-07-05 21:12:48 +10:00
5554656171 fixed bugs 36 & 37) 2023-07-05 20:12:16 +10:00
50412e23a3 bug 37 (allow deleting from on wish list) fixed 2023-07-05 20:12:00 +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
a0d3fdd599 removed non ORM db CRUD sqls, so BUG-35 fixed 2023-07-05 20:02:05 +10:00
0803c3cf22 remove loaned books from books on shelf - fixes BUG-38 2023-07-05 20:00:28 +10:00
8957771ae1 fixed bug-40, when adding author/<id>/books route, to edit_id.html, I assumed object existed, when creating it did not, now fixed 2023-07-05 19:45:42 +10:00
3564334a76 new sqlaclhemy needs separated .join()s 2023-07-05 19:44:50 +10:00
80ce668089 went through book shelves carefully, detected Lost books, and create some more TODOs and some BUGs 2023-07-05 19:43:52 +10:00
26349c98d4 added edit author button/link, and fixed broken hover since I changed to bals from author. Also removed the old author code, finally made it so when you hover over remove button we now also highlight the edit button for the author to be red as well. Hovering over edit link higlights the relevant author blue to let you know which one you will go to 2023-07-04 23:54:32 +10:00
99b4239633 forgot newer sql alchemy needs separation .join() per table 2023-07-04 23:08:23 +10:00
1e7a47f43e allow Edit Author to show list of books for author 2023-07-04 23:00:39 +10:00
caf65be74c allow author to be a link 2023-07-04 23:00:08 +10:00
0d48053a6d created OrderBooks covenience function, then didnt use it elsewhere ;) 2023-07-04 22:21:32 +10:00
3bbe971b92 remove done items 2023-07-04 22:20:03 +10:00
29157a48dd update BUG details 2023-07-04 22:19:40 +10:00
d88f117dc0 sort series by title 2023-07-04 22:19:22 +10:00
ae4fe47093 added removing direct sqls, also put a TODO in for adding a parent book to a series 2023-07-02 12:58:42 +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
f4962e5fd8 remove use of sql direct for delete, just use import line as needed to avoid circular import 2023-07-02 12:56:23 +10:00
b2d6f38a62 just make container mode visually different in navbar 2023-07-02 12:55:30 +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
df07c810bc start by sorting by title, so the drop-down is alphabetised by title 2023-07-02 10:44:42 +10:00
207f5d7ddb testing showing quirky bugs in "container" vs "development", think I need to use ORM consistently to update 2023-07-02 10:44:17 +10:00
0e7d4676d1 alternate way to find series with missing books to use in series add drop-down - fixes issue with a new series with no bsl yet not showin in list 2023-07-01 22:18:09 +10:00
c36474a2f0 fixed BUG-34: possible series list is assuming a NULL sub_book_num is taking up a slot of books in series 2023-07-01 16:12:36 +10:00
f8df4d1980 BUG-34: possible series list is assuming a NULL sub_book_num is taking up a slot of books in series 2023-07-01 16:09:08 +10:00
a72912b15f fixed BUG-33 - complex book/sub_book/series addition 2023-07-01 16:06:55 +10:00
fa2d570612 reminder to fix for proper use of ORMs, we still see odd timeouts that go away with a browser refresh - presume its the mixing of ORM and not 2023-07-01 16:06:36 +10:00
672060399b new bug-33, complex case of adding a book with sub-books to a second series (diamond throne -> Sparhawk series book 1) 2023-07-01 16:05:47 +10:00
cc37077504 fix use of ENV -> FLASK_ENV to have correct prod/dev markers in navbar 2023-07-01 16:05:06 +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
6a43cd23d1 about to test this in prod, but BUG-6 (finally) and BUG-32 are now fixed 2023-07-01 14:33:05 +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
90792728b3 BUG-3 doesnt exist anymore 2023-06-13 22:11:50 +10:00
bb3c08a871 BUG-27 is incorrect, maybe just fixed with using ORM from sql direct is my guess, but new book and series works in dev, so dropping bug 2023-06-13 22:08:34 +10:00
ded4c625b1 fixed up riftware cycle all 30 books 2023-06-13 20:54:18 +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
51a259e0b2 BUG-21 no longer occurs 2023-06-13 00:14:51 +10:00
ce58624834 new BUG, year_published needed even when on wish list 2023-06-12 21:27:14 +10:00
ff513e0add added BUG-28, choosing on wish list does not alter other gui elements 2023-06-12 21:12:27 +10:00
f66ed36bfe adding BUG-27 - creating book with series, and series not added 2023-06-12 21:01:42 +10:00
e36e9fd098 using --enable-stdio-inheritance for prod gunicorn too 2023-06-12 20:46:13 +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
e92cfd448e 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:43:45 +10:00
98ef9b5edc adidng a TODO file 2023-06-12 20:41:06 +10:00
58d99d526e BUG-26, cant save any change on a book with series 2023-06-12 20:40:48 +10:00