revied
All checks were successful
Deploy to core / deploy (push) Successful in 1m37s

This commit is contained in:
Untone 2024-02-02 23:38:42 +03:00
parent 8cc7e21338
commit 7cd7447796

View File

@ -90,7 +90,7 @@ def check_to_unfeature(session, rejecter_id, reaction):
async def set_featured(session, shout_id):
s = session.query(Shout).where(Shout.id == shout_id).first()
s.featured_at = int(time.time())
Shout.update(s, { 'featured_at': int(time.time()) })
Shout.update(s, {'featured_at': int(time.time())})
author = session.query(Author).filter(Author.id == s.created_by).first()
if author:
await add_user_role(str(author.user))
@ -100,7 +100,7 @@ async def set_featured(session, shout_id):
def set_unfeatured(session, shout_id):
s = session.query(Shout).where(Shout.id == shout_id).first()
Shout.update(s, {'featured_at': None })
Shout.update(s, {'featured_at': None})
session.add(s)
session.commit()