mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-01-22 15:08:07 +00:00
Python formatting
This commit is contained in:
parent
bde6ce8525
commit
9dc19b8bff
1 changed files with 3 additions and 5 deletions
|
@ -305,11 +305,9 @@ class Review(Status):
|
|||
def pure_name(self):
|
||||
""" clarify review names for mastodon serialization """
|
||||
template = get_template("snippets/generated_status/review_pure_name.html")
|
||||
return template.render({
|
||||
"book": self.book,
|
||||
"rating": int(self.rating),
|
||||
"name": self.name
|
||||
}).strip()
|
||||
return template.render(
|
||||
{"book": self.book, "rating": int(self.rating), "name": self.name}
|
||||
).strip()
|
||||
|
||||
@property
|
||||
def pure_content(self):
|
||||
|
|
Loading…
Reference in a new issue