Commit Graph

278 Commits

Author SHA1 Message Date
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
0ed2b79485 improve UX for add/remove subbooks - updates content to original page behind modal, when we add/remove and fix the broken close button on modal 2023-06-11 22:05:49 +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
65c701c6a0 allow <Enter> to trigger search in loan 2023-06-11 21:46:28 +10:00
7b329d84fc 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) - fixes BUG-24 2023-06-11 15:37:07 +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
c23df4dac3 BUG-23: saving books with subs, somehow complains about series removal 2023-06-11 14:18:01 +10:00
88eb500c83 fix bug with series with 0 books in it, not showing up for use when editing a book 2023-06-11 14:17:29 +10:00
8a16b35236 a dump of the DB, jic 2023-06-11 11:27:01 +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
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 2023-06-10 22:36:06 +10:00
1b7b85ce33 books on shelf code is not handling series ordering at all 2023-06-10 22:35:27 +10:00
d7290f20e5 updated favicon 2022-07-06 22:58:18 +10:00
e6ce558665 fix BUG-19 - unrated books, used wrong table joins 2022-07-06 22:38:09 +10:00
32e0edc46c add/remove series div/input-group fixup to work with bootstrap5 2022-07-06 22:29:32 +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
419eda9c33 remove unneeded extra call to dataTables.*.js 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 2022-07-03 21:25:33 +10:00
1c01e2007e remove inline display (unneeded and broke table bg colours) 2022-07-03 21:01:30 +10:00
b0d98e9725 input-groups for bs5 2022-07-03 20:49:13 +10:00
ef028037f9 add a fluid container to give some margins on the left/right 2022-07-03 20:44:23 +10:00
021bf91e16 remove .format() and get all updates to have crrect content 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 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 2022-06-19 23:02:40 +10:00
ae84fc080a fixed up non-right aligned navbar 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 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
6087bdab9e html5 by default in newer versions, just "from wtforms import DateField" 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 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 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 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 2021-01-10 11:10:49 +11:00