publish-fix
Some checks failed
Deploy to core / deploy (push) Failing after 5s

This commit is contained in:
Untone 2024-02-02 21:04:21 +03:00
parent 410d426ea5
commit 516945ddec

View File

@ -153,6 +153,8 @@ async def update_shout( # noqa: C901
# Replace datetime with Unix timestamp
shout_input['updated_at'] = current_time # Set updated_at as Unix timestamp
if publish:
shout_input['published_at'] = current_time
Shout.update(shout, shout_input)
session.add(shout)