create-reaction-fix-7
This commit is contained in:
parent
257ff43eaa
commit
9782cf402e
|
@ -96,7 +96,7 @@ def is_published_author(session, author_id):
|
||||||
"""checks if author has at least one publication"""
|
"""checks if author has at least one publication"""
|
||||||
return (
|
return (
|
||||||
session.query(Shout)
|
session.query(Shout)
|
||||||
.where(Shout.authors.any(author_id))
|
.where(Shout.authors.any(id=author_id))
|
||||||
.filter(and_(Shout.published_at != "", Shout.deleted_at.is_(None)))
|
.filter(and_(Shout.published_at != "", Shout.deleted_at.is_(None)))
|
||||||
.count()
|
.count()
|
||||||
> 0
|
> 0
|
||||||
|
|
Loading…
Reference in New Issue
Block a user