From e7c036816821c46b65a74b83099018a01be5f9ee Mon Sep 17 00:00:00 2001 From: Joel Bradshaw Date: Wed, 25 Nov 2020 22:36:55 -0800 Subject: [PATCH] PR feedback --- bookwyrm/activitypub/note.py | 6 ------ bookwyrm/templates/snippets/progress_update.html | 2 +- bookwyrm/views.py | 3 ++- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/bookwyrm/activitypub/note.py b/bookwyrm/activitypub/note.py index f4a22c41..ebc0cf3c 100644 --- a/bookwyrm/activitypub/note.py +++ b/bookwyrm/activitypub/note.py @@ -63,9 +63,3 @@ class Quotation(Comment): ''' a quote and commentary on a book ''' quote: str type: str = 'Quotation' - -@dataclass(init=False) -class Progress(Comment): - ''' a progress update on a book ''' - quote: str - type: str = 'Progress' diff --git a/bookwyrm/templates/snippets/progress_update.html b/bookwyrm/templates/snippets/progress_update.html index a6def952..a93ac839 100644 --- a/bookwyrm/templates/snippets/progress_update.html +++ b/bookwyrm/templates/snippets/progress_update.html @@ -1,7 +1,7 @@
on page
- +
of 100
diff --git a/bookwyrm/views.py b/bookwyrm/views.py index 9748481a..19d3af97 100644 --- a/bookwyrm/views.py +++ b/bookwyrm/views.py @@ -563,7 +563,8 @@ def book_page(request, book_id): ).order_by('start_date') for readthrough in readthroughs: - readthrough.progress_updates = readthrough.progressupdate_set.all().order_by('date') + readthrough.progress_updates = \ + readthrough.progressupdate_set.all().order_by('date') rating = reviews.aggregate(Avg('rating')) tags = models.Tag.objects.filter(