Commit Graph

130 Commits

Author SHA1 Message Date
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
2028266ff7 fixed BUG-12: remove loaned out books from results of search for books to add to a loan 2021-01-05 11:09:51 +11:00
336ae4b67f TODO-6 (add books to loan) is now complete, so loans are now fully functional... the whole pybook is now at least functional, more features/validation to come :) 2021-01-04 22:28:35 +11:00
17c0c2a024 first commit for removing books from a loan itself, works and the scaffold is there for adding new books, code to be written 2021-01-04 16:23:09 +11:00
cc13ecfc87 fixed BUG-8, no genres for a sub book addition loses parent details 2021-01-03 12:08:19 +11:00
6d97df44e4 TODO-2 completed, can remove a subbook from parent 2021-01-02 19:10:52 +11:00
4c442e1fea fixed BUG-11, parent was both an array (in Book) and not an array in QuickBook, so made them arrays to keep with ORM-way 2021-01-02 18:53:52 +11:00
77677d4829 FIXED: TODO-1 (created/modifed times)... added now() and trigger for modifications in the postgres db itself, and altered ORM to know its now datetime, not date -- the trigger extension required datetime and its probably more useful anyway 2021-01-02 17:53:49 +11:00
145b6037a8 solved BUG-11 (adding to wrong parent book) 2020-12-31 13:12:01 +11:00
868ad1379f now order_by sub_book_num in child_ref array, fixed BUG with series ordering for series:112 2020-12-31 12:12:41 +11:00
5a92f967be fixed button ordering, which also fixed bug with page_title for book.html not being used 2020-12-31 12:03:29 +11:00
9beec7de86 added error handling for DB exceptions 2020-12-30 16:48:15 +11:00
de860a1319 moved display message to base.html, should have done this from the beginning (doh), and then fixed deletion errors/redirections to be moe sensible 2020-12-26 22:19:05 +11:00
800dcc0c25 first-pass of deleting a book, it works, it alerts if you try to delete a parent book, nothing else really tested though 2020-12-26 21:43:42 +11:00
61629760cd adding a sub-book now works 2020-12-26 19:11:43 +11:00
73001dd24c first pass at creating a book, it works, but I have messed up the series-div* html in book.html 2020-12-23 12:53:27 +11:00
24210d365c added stats page 2020-12-14 23:21:19 +11:00
c102b93872 add/remove series from a book now works, havent thought about removing a parent book fro a series, but otherwise you can add more than one series, remove as well, and it works in the DB 2020-12-13 22:21:38 +11:00
583bebccec okay adding/removing authors is functional, ordering of it is NQR, also moved to bookstrap margin/padding classes where it worked 2020-12-06 15:51:38 +11:00
8ab3b36dc0 make AddSub so we can call it in search and books, and dont use -1 array index as it breaks AddSubs - remember it is the last element in dict, so it was overwriting data 2020-12-05 20:45:44 +11:00
e84e54bdab order pubisher list in book.html by name not id 2020-12-05 20:28:11 +11:00
b2a9cdc1c7 added search (only of title in book for now) 2020-12-05 20:15:44 +11:00
5057e856be now have a class to maintain the status, use that to set alert/message for owned, and redirect after create/update/delete owned -> owneds 2020-12-05 11:00:53 +11:00
d61e830525 now create an owned on /owned, rather than /owned/-1 kludge. Also using sequence for creation. All good - made sequences for all relevant tables too. Last question is how to do redirect to /owneds and still show messsage 2020-12-04 18:59:34 +11:00
3d12edab63 changed publisher link over to a 1-to-many, removed book_publisher_link table, etc. fully works in show books, edit book for publisher now 2020-12-03 19:19:28 +11:00
b6ba97f049 most of way through editing publisher, author, genre on book... decided now is time to make book<->publisher a normal 1-to-m as it should be 2020-12-02 20:55:43 +11:00
93383c3bc0 remove edit buttons on author/publisher, in fact publisher is now a standard field with a BookForm SelectField, and showing, updating publisher works in book.html 2020-12-02 19:48:51 +11:00
b5e9c41cfd update BUGs and README, to show issues with saving book... Many fields now save, but still some bugged or not tried 2020-12-01 20:39:40 +11:00
7e67f5bb6f rewrote to remove parent_ref and just use parent from ORM, added POST for book/id route, so we can now error on delete and save title only - baby steps -- with alert/message feedback, and also removed debugs 2020-12-01 20:28:22 +11:00
ce34f68254 added html for subbooks, made up/down buttons that work too. Also put back reference from subbook to parent book, via ORM data - need to investigate more, but it all works 2020-11-30 21:59:50 +11:00
8d64b95d9f fixed bug with swapping book in series when we dont have details on book to swap with, also really disabled up/down buttons, rather than just made them look disabled 2020-11-29 17:40:04 +11:00
99f0a9fdbf MoveBookInSeries now works and moves sub books too if needed, added better comments as the code is a bit hairy. Most importantly, this works for all known cases 2020-11-29 16:01:53 +11:00
b1e6089276 different way to do the moving in series, more complex, but will handle subbooks in series, etc. 2020-11-29 15:36:12 +11:00
5b3ee20fc2 about to really rewrite the swapping sub books, so committing what we have that partially works 2020-11-29 13:47:07 +11:00
6bcbaca1ee fixed bug / improved how we sort parent books, we now sort it based on the first sub_books spot in the series, not the last book we retrieved from the db ordered by book.id - this does not always work if we make a parent book after other books in a series (or move books), then it was printed out of order 2020-11-28 18:27:34 +11:00
ae1aba5e1d swap order of books in series works - still has debugs, and only works on current series, e.g. if you are in a series in a series, it will need you to manually do the same move in both series - I think I wont fix this bit, but we will see 2020-11-28 17:43:03 +11:00
606c3615cf books_for_series now deals with sub books (hiding ability to reorder them in series), and disables first book (parent or normal) and last book (normal or parent of last sub-book) 2020-11-25 17:53:05 +11:00
725c362663 cleaned up tabs on comments in main.py, allowed series edit page to stretch full page, shrank font for books in series table, added move up/down buttons (non-functional as yet), and visualised books being in more than one series 2020-11-24 18:12:28 +11:00
c310071db9 series view now orders books in series - still does not deal with series in series 2020-11-23 19:50:00 +11:00
e7c8e645ae first pass for series data, can save, and shows associated books... Does not deal with series inside series 2020-11-23 18:50:53 +11:00
fc12536a83 reordered add button to be consistent with author and publisher, then allowed author to be a drop-down with a + or - button as appropriate 2020-11-22 12:02:01 +11:00