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

Method get_sign_data

RoverSign/utils/database/models.py:368–376  ·  view source on GitHub ↗

根据UID和日期查询签到数据

(
        cls: Type[T_RoverSign],
        session: AsyncSession,
        uid: str,
        date: Optional[str] = None,
    )

Source from the content-addressed store, hash-verified

366 @classmethod
367 @with_session
368 async def get_sign_data(
369 cls: Type[T_RoverSign],
370 session: AsyncSession,
371 uid: str,
372 date: Optional[str] = None,
373 ) -> Optional[T_RoverSign]:
374 """根据UID和日期查询签到数据"""
375 date = date or get_today_date()
376 return await cls._find_sign_record(session, uid, date)
377
378 @classmethod
379 @with_session

Callers 4

rover_sign_up_handlerFunction · 0.80
rover_auto_sign_taskFunction · 0.80
_process_user_innerFunction · 0.80
do_single_taskFunction · 0.80

Calls 2

get_today_dateFunction · 0.85
_find_sign_recordMethod · 0.80

Tested by

no test coverage detected