清除签到记录
(
cls: Type[T_RoverSign],
session: AsyncSession,
date: str,
)
| 392 | @with_lock |
| 393 | @with_session |
| 394 | async def clear_sign_record( |
| 395 | cls: Type[T_RoverSign], |
| 396 | session: AsyncSession, |
| 397 | date: str, |
| 398 | ): |
| 399 | """清除签到记录""" |
| 400 | sql = delete(cls).where(getattr(cls, "date") <= date) |
| 401 | await session.execute(sql) |
| 402 | |
| 403 | |
| 404 | T_RoverSubscribe = TypeVar("T_RoverSubscribe", bound=RoverSubscribe) |
no outgoing calls
no test coverage detected