Commit Graph

  • 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 Damien De Paoli 2023-06-11 00:28:30 +10:00
  • 07d713da15 now handle series book numbering in the books on shelf page. Fixes BUG-22 Damien De Paoli 2023-06-10 23:58:12 +10:00
  • 0755b1ad12 not sure if this is needed, had some oddness with dev on mara and these packages, adding in case, and assuming prod build will work - we will find out soon Damien De Paoli 2023-06-10 22:36:06 +10:00
  • 1b7b85ce33 books on shelf code is not handling series ordering at all Damien De Paoli 2023-06-10 22:35:27 +10:00
  • d7290f20e5 updated favicon Damien De Paoli 2022-07-06 22:58:18 +10:00
  • e6ce558665 fix BUG-19 - unrated books, used wrong table joins Damien De Paoli 2022-07-06 22:38:09 +10:00
  • 32e0edc46c add/remove series div/input-group fixup to work with bootstrap5 Damien De Paoli 2022-07-06 22:29:32 +10:00
  • c31ae71dee fixed add/rem author funtionality for bs5 and converted to svg icons away from fontawesome Damien De Paoli 2022-07-04 22:25:35 +10:00
  • 419eda9c33 remove unneeded extra call to dataTables.*.js Damien De Paoli 2022-07-03 21:30:40 +10:00
  • 045be5eebe use full width, fix wrapping in sub book notes and title fields and fix-up button sizes on book edit Damien De Paoli 2022-07-03 21:25:33 +10:00
  • 1c01e2007e remove inline display (unneeded and broke table bg colours) Damien De Paoli 2022-07-03 21:01:30 +10:00
  • b0d98e9725 input-groups for bs5 Damien De Paoli 2022-07-03 20:49:13 +10:00
  • ef028037f9 add a fluid container to give some margins on the left/right Damien De Paoli 2022-07-03 20:44:23 +10:00
  • 021bf91e16 remove .format() and get all updates to have crrect content Damien De Paoli 2022-07-03 20:38:33 +10:00
  • 8834893df3 upgraded to base U22.04 image, realised that by putting bootstrap5 stuff in for login its borked the format of many files, so partially converted to use new bootstrap, still work to go Damien De Paoli 2022-07-02 12:52:34 +10:00
  • 3c8dc980b1 quick hack to allow logout menu to be right-aligned, to be fixed with a full move to bootstrap5 Damien De Paoli 2022-06-19 23:02:40 +10:00
  • ae84fc080a fixed up non-right aligned navbar Damien De Paoli 2022-06-19 22:47:45 +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 Damien De Paoli 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 Damien De Paoli 2022-06-19 16:15:51 +10:00
  • 6087bdab9e html5 by default in newer versions, just "from wtforms import DateField" Damien De Paoli 2022-06-19 00:14:44 +10:00
  • 27ad9b0d60 this is needed to get gunicorn to run with the newer code cross-importation syntax and to have threading, workers and ssl Damien De Paoli 2021-01-14 20:50:27 +11:00
  • e4ed563245 renamed ClearMessage to better name of ClearStatus, and exposed it to jinja2 so status messages now work in base.html Damien De Paoli 2021-01-10 12:18:28 +11:00
  • 0f1cae267d Fixed BUG-02 (recalc rating on book change), also added route to reset all ratings in Admin menu Damien De Paoli 2021-01-10 11:11:04 +11:00
  • 6f5b65788d Fixed BUG-02 (recalc rating on book change), also added route to reset all ratings in Admin menu Damien De Paoli 2021-01-10 11:10:49 +11:00
  • 35d92e0ab6 Fixed BUG-18 -> cannot find book Damien De Paoli 2021-01-10 00:21:50 +11:00
  • 150b808bb5 completed: TODO-26 --> gunicorn now works Damien De Paoli 2021-01-09 23:42:51 +11:00
  • 81394ec0c9 added BUG-18: delete a book and go back to that URL does not error properly Damien De Paoli 2021-01-09 23:40:19 +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 Damien De Paoli 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 Damien De Paoli 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 Damien De Paoli 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 Damien De Paoli 2021-01-09 22:00:08 +11:00
  • e923709663 completed: TODO-27 dealing with series with only sold books not shown in missing list Damien De Paoli 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 Damien De Paoli 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 Damien De Paoli 2021-01-09 15:32:55 +11:00
  • 3c4cdeb4fb fixed BUG-15: book nums missing for parent books in series Damien De Paoli 2021-01-09 15:10:45 +11:00
  • 7c6b091faa reorder TODOs Damien De Paoli 2021-01-09 01:14:43 +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 Damien De Paoli 2021-01-09 01:13:26 +11:00
  • a6211928df completed TODO-12: missing books Damien De Paoli 2021-01-09 00:45:10 +11:00
  • e1eebffd2b new BUG for books in series not showing book num Damien De Paoli 2021-01-09 00:44:07 +11:00
  • 94ddee7791 completed TODO-11 (unrated books) Damien De Paoli 2021-01-08 22:43:48 +11:00
  • d153c40c17 completed -- TODO-08: show books on shelf list, and clarified install instructions for README Damien De Paoli 2021-01-08 22:29:27 +11:00
  • 890b2cdc4e fixed BUG-14 (add/sel buttons not being disabled again when no selections) Damien De Paoli 2021-01-08 21:35:38 +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 Damien De Paoli 2021-01-08 13:14:09 +11:00
  • 4842a1bc91 added BUG-15 - https doing http submits Damien De Paoli 2021-01-08 13:14:01 +11:00
  • 64c2de375f TODO-24 (in docker) DONE Damien De Paoli 2021-01-08 12:09:41 +11:00
  • 848cb378bc TODO-24 (in docker) DONE Damien De Paoli 2021-01-08 12:09:27 +11:00
  • bed04f88f9 TODO-24 (in docker) DONE Damien De Paoli 2021-01-08 12:09:22 +11:00
  • e4606cdbeb for now, we have a bookdb docker container with content and referenced in main.py Damien De Paoli 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 Damien De Paoli 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 Damien De Paoli 2021-01-07 19:10:22 +11:00
  • 860a85e3ae can now remove just 1 sub book - TODO-25 -- DONE Damien De Paoli 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) Damien De Paoli 2021-01-07 16:02:04 +11:00
  • 6cd2d735ca minor cleanup/ suggestion on TODO-5 Damien De Paoli 2021-01-06 23:40:05 +11:00
  • cc8d8c30c1 removed debugs, reply with 200 OK instead of redirect that is ignored anyway Damien De Paoli 2021-01-06 23:31:19 +11:00
  • 9617186279 TODO 3 and 4 finished. removing parent or sub books from series handled Damien De Paoli 2021-01-06 23:26:10 +11:00
  • 815cdf0291 added TODO-22 adding a sub-book when the parent book is in a series, need to add a bsl for it Damien De Paoli 2021-01-06 23:25:29 +11:00
  • 024a2a12a1 remove footer on modal dialog, I think its dumb Damien De Paoli 2021-01-06 23:25:04 +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 Damien De Paoli 2021-01-06 20:39:51 +11:00
  • 47119cf7f8 made DBox empty, and set content for loan specific data in books_for_loan, so DBox can be reused elsewhere, AND, so all content in the DBox for Loan is set in the one html file, not split over to base.html Damien De Paoli 2021-01-06 20:37:20 +11:00
  • 9a53da0010 added BUG-14, add/sel buttons still active when should not be Damien De Paoli 2021-01-06 20:35:39 +11:00
  • 7395d4c264 updated BUGs/README for relevant next item Damien De Paoli 2021-01-05 11:28:28 +11:00
  • 0ac5684f17 BUG-13 delete loan fails with foreign key issues, all fixed Damien De Paoli 2021-01-05 11:18:53 +11:00
  • 2028266ff7 fixed BUG-12: remove loaned out books from results of search for books to add to a loan Damien De Paoli 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 :) Damien De Paoli 2021-01-04 22:28:35 +11:00
  • 6ff3d13713 TODO-7 removing book(s) from loan works, and UI is better now Damien De Paoli 2021-01-04 22:07:06 +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 Damien De Paoli 2021-01-04 16:23:09 +11:00
  • cc13ecfc87 fixed BUG-8, no genres for a sub book addition loses parent details Damien De Paoli 2021-01-03 12:08:19 +11:00
  • ff45513c7d fix up new regression on add subbook button after fixing loans div bug Damien De Paoli 2021-01-03 11:59:36 +11:00
  • 98372ea62c fixed BUG-4 (books only showing 1 author) Damien De Paoli 2021-01-03 11:55:16 +11:00
  • 195daf98e0 fixed BUG-1 (loan div in wrong spot) Damien De Paoli 2021-01-03 11:51:22 +11:00
  • 4e4ff7f6c7 fixed bugs 9 & 10, just missing quotes in html for hidden value Damien De Paoli 2021-01-03 11:43:52 +11:00
  • 4ec84d1426 TODO-2 done, clean up of README too Damien De Paoli 2021-01-02 19:13:47 +11:00
  • e625b19451 TODO-2 completed, can remove a subbook from parent Damien De Paoli 2021-01-02 19:13:28 +11:00
  • 6d97df44e4 TODO-2 completed, can remove a subbook from parent Damien De Paoli 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 Damien De Paoli 2021-01-02 18:53:52 +11:00
  • 3c47063ee2 formatting Damien De Paoli 2021-01-02 18:11:09 +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 Damien De Paoli 2021-01-02 17:53:49 +11:00
  • f1f654ec15 removed debug Damien De Paoli 2020-12-31 13:13:22 +11:00
  • 145b6037a8 solved BUG-11 (adding to wrong parent book) Damien De Paoli 2020-12-31 13:12:01 +11:00
  • d1ffbdf12e solved BUG-11 (adding to wrong parent book) Damien De Paoli 2020-12-31 13:11:50 +11:00
  • cf344d6439 new BUGs, reformatting again Damien De Paoli 2020-12-31 12:33:56 +11:00
  • ddfd0b878b decided to number bugs and todo so I can link commits to their fixes Damien De Paoli 2020-12-31 12:18:32 +11:00
  • 868ad1379f now order_by sub_book_num in child_ref array, fixed BUG with series ordering for series:112 Damien De Paoli 2020-12-31 12:12:41 +11:00
  • 83136ddab3 remove delete/db sections, they are done and fixed submit/delete button ordering Damien De Paoli 2020-12-31 12:03:52 +11:00
  • 5a92f967be fixed button ordering, which also fixed bug with page_title for book.html not being used Damien De Paoli 2020-12-31 12:03:29 +11:00
  • 08f1550068 reordered buttons so Update is before Delete Damien De Paoli 2020-12-31 11:53:13 +11:00
  • c99342232c make sure num_books also has a value, not just a positive one, so I am force to fill it in on submit Damien De Paoli 2020-12-31 11:52:27 +11:00
  • 911d37ed25 remove old import of func, not used Damien De Paoli 2020-12-31 11:51:59 +11:00
  • 7e080f65c5 handle DB errors Damien De Paoli 2020-12-31 11:51:06 +11:00
  • 0ae4019a1a handle DB errors Damien De Paoli 2020-12-31 11:31:15 +11:00
  • 6d9ec1336f handle DB errors Damien De Paoli 2020-12-31 11:25:18 +11:00
  • 9571c45def refined notes around series and validation logic Damien De Paoli 2020-12-30 23:40:52 +11:00
  • 244367af2a CRUD for series is now trapped for DB errors Damien De Paoli 2020-12-30 23:37:40 +11:00
  • f9db9bc271 fixed CRUD series bugs Damien De Paoli 2020-12-30 23:37:11 +11:00
  • ef852d52b0 starting on update/delete db error handling, but not working yet Damien De Paoli 2020-12-30 23:13:50 +11:00
  • 7691fd922f noting bug for series CRUD Damien De Paoli 2020-12-30 23:12:56 +11:00
  • a7f5f43946 updated state of db error handling Damien De Paoli 2020-12-30 23:12:47 +11:00
  • af6c76d136 improved DB error handling Damien De Paoli 2020-12-30 23:12:36 +11:00
  • 60b7484afb added error handling for DB exceptions Damien De Paoli 2020-12-30 22:21:29 +11:00
  • db18edeef3 added error handling for DB exceptions Damien De Paoli 2020-12-30 22:21:06 +11:00