mirror of
https://gitea.tendokyu.moe/Hay1tsme/artemis.git
synced 2026-02-15 04:07:29 +08:00
pokken: fill LoadUser, add auto_register flag
This commit is contained in:
@@ -182,6 +182,12 @@ class PokkenProfileData(BaseData):
|
||||
"""
|
||||
pass
|
||||
|
||||
def get_profile(self, user_id: int) -> Optional[Row]:
|
||||
sql = profile.select(profile.c.user == user_id)
|
||||
result = self.execute(sql)
|
||||
if result is None: return None
|
||||
return result.fetchone()
|
||||
|
||||
def put_pokemon_data(self, user_id: int, pokemon_data: Dict) -> Optional[int]:
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user