This commit is contained in:
parent
61528e5269
commit
1be8eeb810
|
@ -28,7 +28,7 @@ def apply_filters(q, filters, author_id=None):
|
||||||
|
|
||||||
by_featured = filters.get('featured')
|
by_featured = filters.get('featured')
|
||||||
if by_featured:
|
if by_featured:
|
||||||
q = q.filter(Shout.featered_at.is_not(None))
|
q = q.filter(Shout.featured_at.is_not(None))
|
||||||
by_layouts = filters.get('layouts')
|
by_layouts = filters.get('layouts')
|
||||||
if by_layouts:
|
if by_layouts:
|
||||||
q = q.filter(Shout.layout.in_(by_layouts))
|
q = q.filter(Shout.layout.in_(by_layouts))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user