forked from mirrors/bookwyrm
Python formatting
This commit is contained in:
parent
91aa6fa95f
commit
0947b79fb1
1 changed files with 4 additions and 7 deletions
|
@ -62,13 +62,10 @@ def get_notification_count(user):
|
|||
def get_replies(status):
|
||||
""" get all direct replies to a status """
|
||||
# TODO: this limit could cause problems
|
||||
return (
|
||||
models.Status.objects.filter(
|
||||
reply_parent=status,
|
||||
deleted=False,
|
||||
)
|
||||
.select_subclasses()[:10]
|
||||
)
|
||||
return models.Status.objects.filter(
|
||||
reply_parent=status,
|
||||
deleted=False,
|
||||
).select_subclasses()[:10]
|
||||
|
||||
|
||||
@register.filter(name="parent")
|
||||
|
|
Loading…
Reference in a new issue