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

Method get_waves_all_user

RoverSign/utils/database/models.py:137–153  ·  view source on GitHub ↗

获取有cookie的玩家。

(
        cls: Type[T_WavesUser],
        session: AsyncSession,
    )

Source from the content-addressed store, hash-verified

135 @classmethod
136 @with_session
137 async def get_waves_all_user(
138 cls: Type[T_WavesUser],
139 session: AsyncSession,
140 ) -> List[T_WavesUser]:
141 """
142 获取有cookie的玩家。
143 """
144 sql = (
145 select(cls)
146 .where(cls.cookie != null())
147 .where(cls.cookie != "")
148 .where(cls.user_id != null())
149 .where(cls.user_id != "")
150 )
151 result = await session.execute(sql)
152 data = result.scalars().all()
153 return list(data)
154
155 @classmethod
156 @with_session

Callers 2

rover_auto_sign_taskFunction · 0.80
get_sign_numFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected