This commit is contained in:
parent
605d60f126
commit
54e82f99eb
|
@ -59,8 +59,7 @@ def apply_filters(q, filters, author_id=None):
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
by_featured = filters.get("featured")
|
if filters.get("featured"):
|
||||||
if by_featured:
|
|
||||||
q = q.filter(Shout.featured_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:
|
||||||
|
@ -190,6 +189,7 @@ async def load_shouts_by(_, _info, options):
|
||||||
q = q.limit(limit).offset(offset)
|
q = q.limit(limit).offset(offset)
|
||||||
|
|
||||||
shouts = []
|
shouts = []
|
||||||
|
logger.debug(q)
|
||||||
with local_session() as session:
|
with local_session() as session:
|
||||||
for [
|
for [
|
||||||
shout,
|
shout,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user