forked from mirrors/bookwyrm
Python formatting
This commit is contained in:
parent
ac2b63d0cd
commit
dbf795be5d
1 changed files with 1 additions and 4 deletions
|
@ -17,7 +17,6 @@ def get_mentions(status, user):
|
|||
)
|
||||
|
||||
|
||||
|
||||
@register.filter(name="replies")
|
||||
def get_replies(status):
|
||||
"""get all direct replies to a status"""
|
||||
|
@ -41,6 +40,4 @@ def get_parent(status):
|
|||
@register.filter(name="boosted_status")
|
||||
def get_boosted(boost):
|
||||
"""load a boosted status. have to do this or it won't get foreign keys"""
|
||||
return (
|
||||
models.Status.objects.select_subclasses().get(id=boost.boosted_status.id)
|
||||
)
|
||||
return models.Status.objects.select_subclasses().get(id=boost.boosted_status.id)
|
||||
|
|
Loading…
Reference in a new issue