From 6d7e063b81874c9a797afb5571c3224d4a79ad17 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Thu, 25 Feb 2021 10:17:24 -0800 Subject: [PATCH] Makes rating field mandatory on ratings --- bookwyrm/activitypub/note.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bookwyrm/activitypub/note.py b/bookwyrm/activitypub/note.py index ddb3f7ab9..ad08e3241 100644 --- a/bookwyrm/activitypub/note.py +++ b/bookwyrm/activitypub/note.py @@ -67,7 +67,7 @@ class Review(Comment): @dataclass(init=False) class Rating(Comment): - ''' a full book review ''' - rating: int = None + ''' just a star rating ''' + rating: int content: str = None type: str = 'Rating'