This commit is contained in:
parent
31bd421e22
commit
4ef5d172a0
|
@ -180,7 +180,8 @@ def get_shouts_with_links(info, q, limit=20, offset=0):
|
||||||
if not shouts_result:
|
if not shouts_result:
|
||||||
return []
|
return []
|
||||||
|
|
||||||
shouts_result = []
|
shouts = []
|
||||||
|
|
||||||
for row in shouts_result:
|
for row in shouts_result:
|
||||||
logger.debug(row)
|
logger.debug(row)
|
||||||
shout_id = row.Shout.id
|
shout_id = row.Shout.id
|
||||||
|
@ -240,7 +241,10 @@ def get_shouts_with_links(info, q, limit=20, offset=0):
|
||||||
[dict(t) for t in shout_dict["topics"]], key=lambda x: (not x.get("is_main", False), x["id"])
|
[dict(t) for t in shout_dict["topics"]], key=lambda x: (not x.get("is_main", False), x["id"])
|
||||||
)
|
)
|
||||||
|
|
||||||
return shouts_result
|
shouts.append(shout_dict)
|
||||||
|
|
||||||
|
return shouts
|
||||||
|
return []
|
||||||
|
|
||||||
|
|
||||||
def apply_filters(q, filters):
|
def apply_filters(q, filters):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user