linter-update
Some checks failed
Deploy to core / deploy (push) Failing after 50s

This commit is contained in:
2024-02-17 13:18:54 +03:00
parent 92246bc9d1
commit 8a4e4ce6d5
4 changed files with 9 additions and 100 deletions

View File

@@ -95,7 +95,7 @@ def patch_main_topic(session, main_topic, shout):
.filter(
and_(
ShoutTopic.shout == shout.id,
ShoutTopic.main == True,
ShoutTopic.main.is_(True),
)
)
.first()
@@ -163,8 +163,7 @@ def patch_topics(session, shout, topics_input):
async def update_shout(_, info, shout_id, shout_input=None, publish=False):
user_id = info.context['user_id']
roles = info.context['roles']
if not shout_input:
shout_input = {}
shout_input = shout_input or {}
with local_session() as session:
author = session.query(Author).filter(Author.user == user_id).first()
current_time = int(time.time())