(
cls: Type[T_WavesUser], session: AsyncSession, uid: str, cookie: str, mark: str
)
| 63 | @with_lock |
| 64 | @with_session |
| 65 | async def mark_cookie_invalid( |
| 66 | cls: Type[T_WavesUser], session: AsyncSession, uid: str, cookie: str, mark: str |
| 67 | ): |
| 68 | sql = ( |
| 69 | update(cls) |
| 70 | .where(col(cls.uid) == uid) |
| 71 | .where(col(cls.cookie) == cookie) |
| 72 | .values(status=mark) |
| 73 | ) |
| 74 | await session.execute(sql) |
| 75 | return True |
| 76 | |
| 77 | @classmethod |
| 78 | @with_session |
no outgoing calls
no test coverage detected