Compare commits
4 Commits
69c76f1116
...
36ab38b1ee
Author | SHA1 | Date | |
---|---|---|---|
36ab38b1ee | |||
1346bab911 | |||
39fc5772eb | |||
bd7e1cead0 |
@ -426,9 +426,10 @@ class OngekiBase:
|
||||
userTechCountList = []
|
||||
|
||||
for tc in utcl:
|
||||
tc.pop("id")
|
||||
tc.pop("user")
|
||||
userTechCountList.append(tc)
|
||||
tmp = tc._asdict()
|
||||
tmp.pop("id")
|
||||
tmp.pop("user")
|
||||
userTechCountList.append(tmp)
|
||||
|
||||
return {
|
||||
"userId": data["userId"],
|
||||
|
@ -129,7 +129,13 @@ tech_count = Table(
|
||||
|
||||
class OngekiScoreData(BaseData):
|
||||
async def get_tech_count(self, aime_id: int) -> Optional[List[Dict]]:
|
||||
return []
|
||||
sql = select(tech_count).where(tech_count.c.user == aime_id)
|
||||
|
||||
result = self.execute(sql)
|
||||
|
||||
if result is None:
|
||||
return None
|
||||
return result.fetchall()
|
||||
|
||||
async def put_tech_count(self, aime_id: int, tech_count_data: Dict) -> Optional[int]:
|
||||
tech_count_data["user"] = aime_id
|
||||
|
Loading…
Reference in New Issue
Block a user