forked from Dniel97/artemis
mai2: Fixed cards not showing up
This commit is contained in:
parent
d6e4db48f4
commit
862907b82a
@ -333,7 +333,7 @@ class Mai2ItemData(BaseData):
|
||||
if result is None:
|
||||
return None
|
||||
return result.fetchone()
|
||||
|
||||
|
||||
def put_character_(self, user_id: int, char_data: Dict) -> Optional[int]:
|
||||
char_data["user"] = user_id
|
||||
sql = insert(character).values(**char_data)
|
||||
@ -489,6 +489,8 @@ class Mai2ItemData(BaseData):
|
||||
else:
|
||||
sql = card.select(and_(card.c.user == user_id, card.c.cardKind == kind))
|
||||
|
||||
sql = sql.order_by(card.c.startDate.desc())
|
||||
|
||||
result = self.execute(sql)
|
||||
if result is None:
|
||||
return None
|
||||
|
Loading…
Reference in New Issue
Block a user