Working diva frontend

This commit is contained in:
=
2024-06-16 14:08:59 +02:00
parent da55e3e877
commit d456ed365c
5 changed files with 86 additions and 15 deletions

View File

@ -240,8 +240,8 @@ class DivaScoreData(BaseData):
return None
return result.fetchall()
async def get_playlogs(self, user_id: int, idx: int = 0, limit: int = 0) -> Optional[List[Row]]:
sql = playlog.select(playlog.c.user == user_id)
async def get_playlogs(self, aime_id: int, idx: int = 0, limit: int = 0) -> Optional[Row]:
sql = select(playlog).where(playlog.c.user == aime_id).order_by(playlog.c.date_scored.desc())
if limit:
sql = sql.limit(limit)