fix-prepare

This commit is contained in:
2022-10-01 14:14:44 +03:00
parent 420d6c1f2d
commit 7ee8003e2d
2 changed files with 15 additions and 36 deletions

View File

@@ -110,10 +110,11 @@ async def get_search_results(_, _info, searchtext, offset, limit):
.offset(offset)
)
for s in shouts:
for a in s.authors:
a.caption = await ShoutAuthorStorage.get_author_caption(s.slug, a.slug)
s.stat.relevance = 1 # FIXME: expecting search engine rated relevance
for s in shouts:
shout = s.dict()
for a in shout['authors']:
a.caption = await ShoutAuthorStorage.get_author_caption(s.slug, a.slug)
s.stat.relevance = 1 # FIXME: expecting search engine rated relevance
return shouts