mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-01 22:11:16 +00:00
Forgive me pylint
This commit is contained in:
parent
47cfc2f157
commit
63e284dc41
1 changed files with 1 additions and 1 deletions
|
@ -255,10 +255,10 @@ def get_suggested_books(user, max_books=5):
|
||||||
|
|
||||||
|
|
||||||
def filter_stream_by_status_type(activities, allowed_types=None):
|
def filter_stream_by_status_type(activities, allowed_types=None):
|
||||||
|
"""filter out activities based on types"""
|
||||||
if not allowed_types:
|
if not allowed_types:
|
||||||
allowed_types = []
|
allowed_types = []
|
||||||
|
|
||||||
"""filter out activities based on types"""
|
|
||||||
if "review" not in allowed_types:
|
if "review" not in allowed_types:
|
||||||
activities = activities.filter(Q(review__isnull=True))
|
activities = activities.filter(Q(review__isnull=True))
|
||||||
if "comment" not in allowed_types:
|
if "comment" not in allowed_types:
|
||||||
|
|
Loading…
Reference in a new issue