testing-fix
Some checks failed
Deploy on push / deploy (push) Failing after 4m52s

This commit is contained in:
2025-09-01 00:13:46 +03:00
parent 68231b664e
commit 62529959a9
7 changed files with 34 additions and 35 deletions

View File

@@ -259,8 +259,7 @@ async def set_featured(session: Session, shout_id: int) -> None:
s = session.query(Shout).where(Shout.id == shout_id).first()
if s:
current_time = int(time.time())
# Use setattr to avoid MyPy complaints about Column assignment
s.featured_at = current_time # type: ignore[assignment]
s.update({"featured_at": current_time})
session.commit()
author = session.query(Author).where(Author.id == s.created_by).first()
if author: