load-random-topic-fix
All checks were successful
deploy / deploy (push) Successful in 1m30s

This commit is contained in:
2023-12-25 01:06:27 +03:00
parent c236768c07
commit 0ea9f45854
4 changed files with 16 additions and 18 deletions

View File

@@ -91,7 +91,7 @@ def is_published_author(session, author_id):
"""checks if author has at least one publication"""
return (
session.query(Shout)
.where(Shout.authors.contains(author_id))
.where(Shout.authors.any(author_id))
.filter(and_(Shout.published_at != "", Shout.deleted_at.is_(None)))
.count()
> 0