Python formatting

This commit is contained in:
Mouse Reeve 2021-11-10 10:30:18 -08:00
parent 4f5d23e785
commit 9815e9e100

View file

@ -189,7 +189,11 @@ class Status(OrderedCollectionPageMixin, BookWyrmModel):
if hasattr(activity, "name"):
activity.name = self.pure_name
activity.type = self.pure_type
covers = [b.to_activity().get("cover") for b in [getattr(self, "book", None)] + list(self.mention_books.all()) if b]
covers = [
b.to_activity().get("cover")
for b in [getattr(self, "book", None)] + list(self.mention_books.all())
if b
]
activity.attachment = covers
return activity