fmt+debug
All checks were successful
Deploy on push / deploy (push) Successful in 5s

This commit is contained in:
2024-12-12 01:04:11 +03:00
parent 87506b0478
commit d02ae5bd3f
8 changed files with 32 additions and 5 deletions

View File

@@ -250,7 +250,7 @@ async def update_shout(_, info, shout_id: int, shout_input=None, publish=False):
same_slug_shout = session.query(Shout).filter(Shout.slug == slug).first()
shout_input["slug"] = slug
logger.info(f"shout#{shout_id} slug patched")
if filter(lambda x: x.id == author_id, [x for x in shout_by_id.authors]) or "editor" in roles:
logger.info(f"shout#{shout_id} is author or editor")
# topics patch