Commit graph

11 commits

Author SHA1 Message Date
Mouse Reeve e91b6d3d05
Merge branch 'main' into readthroughs 2022-11-25 07:20:50 -08:00
Mouse Reeve b06c35b7dd
Update forms.py 2022-10-14 12:06:54 -07:00
Laura Pircalaboiu f97b6f3da2 fix pylint complaint 2022-10-12 11:25:03 +02:00
Laura Pircalaboiu 4ab5e4b5d9 re-format code 2022-10-11 14:40:52 +02:00
Laura Pircalaboiu b895fbd8f2 fix bug, can no longer finish a book in the future 2022-10-11 14:40:45 +02:00
Laura Pircalaboiu aeeb2c3442 WIP: fix reading status ending in the future 2022-10-11 14:40:32 +02:00
Mouse Reeve e1fba5ccfe Adds readthrough status to readthrough object
Each readthrough should represent a unique instance of reading a book,
and so it should have a single status that represents that status of
that readthrough. This will be used to place the book on the appropriate
"shelves", and should allow for there to be a single active readthrough
if a book is in progress. That maeks the `is_active` field unnecessary.

Since the status of the readthrough is unambiguous, defining "finished
date" and "stopped date" separately is no longer necessary.

I've sketched out some database constraints but haven't implemented them
yet, because the conflicts might get gnarly and let's take this one step
at a time.

The migration logic is complex, so this is an untested draft and I'll
write unit tests for it in a subsequent commit.
2022-07-03 12:22:20 -07:00
Mouse Reeve 375c5a8789 Adds stopped date separate from finish date on readthrough 2022-05-26 11:36:37 -07:00
Mouse Reeve 287b5603d6 Fixes progress updates 2022-03-18 19:11:58 -07:00
Mouse Reeve d3f723a07d Splits forms into separate files 2022-03-14 12:06:50 -07:00
Mouse Reeve 7169f7ba20 Creates forms directory 2022-03-14 11:43:58 -07:00
Renamed from bookwyrm/forms.py (Browse further)