Compare commits
No commits in common. "36ab38b1ee4b91d793f36aabbe57d734c7e44136" and "69c76f11164c2ebe33c002758419b0cc7ddec505" have entirely different histories.
36ab38b1ee
...
69c76f1116
@ -426,10 +426,9 @@ class OngekiBase:
|
|||||||
userTechCountList = []
|
userTechCountList = []
|
||||||
|
|
||||||
for tc in utcl:
|
for tc in utcl:
|
||||||
tmp = tc._asdict()
|
tc.pop("id")
|
||||||
tmp.pop("id")
|
tc.pop("user")
|
||||||
tmp.pop("user")
|
userTechCountList.append(tc)
|
||||||
userTechCountList.append(tmp)
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"userId": data["userId"],
|
"userId": data["userId"],
|
||||||
|
@ -129,13 +129,7 @@ tech_count = Table(
|
|||||||
|
|
||||||
class OngekiScoreData(BaseData):
|
class OngekiScoreData(BaseData):
|
||||||
async def get_tech_count(self, aime_id: int) -> Optional[List[Dict]]:
|
async def get_tech_count(self, aime_id: int) -> Optional[List[Dict]]:
|
||||||
sql = select(tech_count).where(tech_count.c.user == aime_id)
|
return []
|
||||||
|
|
||||||
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]:
|
async def put_tech_count(self, aime_id: int, tech_count_data: Dict) -> Optional[int]:
|
||||||
tech_count_data["user"] = aime_id
|
tech_count_data["user"] = aime_id
|
||||||
|
Loading…
Reference in New Issue
Block a user