author-rating-fix
All checks were successful
deploy / deploy (push) Successful in 1m33s

This commit is contained in:
2023-12-28 00:30:18 +03:00
parent da3e7e55fd
commit 6207f7d3ed
2 changed files with 11 additions and 3 deletions

View File

@@ -197,5 +197,7 @@ def get_random_topic():
q = q.order_by(func.random()).limit(1)
with local_session() as session:
[topic] = session.execute(q).first()
return topic
r = session.execute(q).first()
if r:
[topic] = r
return topic