This commit is contained in:
parent
516945ddec
commit
6d3bd13218
|
@ -153,8 +153,7 @@ async def update_shout( # noqa: C901
|
||||||
|
|
||||||
# Replace datetime with Unix timestamp
|
# Replace datetime with Unix timestamp
|
||||||
shout_input['updated_at'] = current_time # Set updated_at as Unix timestamp
|
shout_input['updated_at'] = current_time # Set updated_at as Unix timestamp
|
||||||
if publish:
|
shout_input['published_at'] = current_time if publish else None
|
||||||
shout_input['published_at'] = current_time
|
|
||||||
Shout.update(shout, shout_input)
|
Shout.update(shout, shout_input)
|
||||||
session.add(shout)
|
session.add(shout)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user