MCPcopy Create free account
hub / github.com/Loping151/RoverSign / clear_sign_record

Method clear_sign_record

RoverSign/utils/database/models.py:394–401  ·  view source on GitHub ↗

清除签到记录

(
        cls: Type[T_RoverSign],
        session: AsyncSession,
        date: str,
    )

Source from the content-addressed store, hash-verified

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
404T_RoverSubscribe = TypeVar("T_RoverSubscribe", bound=RoverSubscribe)

Callers 1

clear_rover_sign_recordFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected