forked from Dniel97/artemis
impl last_round_event_ranking
This commit is contained in:
parent
b202f31938
commit
b993cd4e25
@ -832,13 +832,20 @@ class IDACItemData(BaseData):
|
|||||||
return None
|
return None
|
||||||
return result.fetchall()
|
return result.fetchall()
|
||||||
|
|
||||||
def get_round_rank_by_id(self, aime_id: int, round_event_id: int) -> Optional[List[Row]]:
|
def get_round_rank_by_id(self, aime_id: int, round_event_id: int) -> Optional[Row]:
|
||||||
result = self.execute('call query_user_round_ranking(:aime_id, :round_event_id)', {'aime_id': aime_id, 'round_event_id': round_event_id})
|
result = self.execute('call query_user_round_ranking(:aime_id, :round_event_id)', {'aime_id': aime_id, 'round_event_id': round_event_id})
|
||||||
|
|
||||||
if result is None:
|
if result is None:
|
||||||
return None
|
return None
|
||||||
return result.fetchone()
|
return result.fetchone()
|
||||||
|
|
||||||
|
def get_round_top_three(self, round_event_id: int) -> Optional[List[Row]]:
|
||||||
|
result = self.execute('call query_round_ranking_top_three(:round_event_id)', {'round_event_id': round_event_id})
|
||||||
|
|
||||||
|
if result is None:
|
||||||
|
return None
|
||||||
|
return result.fetchall()
|
||||||
|
|
||||||
def get_timetrial_event(
|
def get_timetrial_event(
|
||||||
self, aime_id: int, timetrial_event_id: int
|
self, aime_id: int, timetrial_event_id: int
|
||||||
) -> Optional[Row]:
|
) -> Optional[Row]:
|
||||||
|
Loading…
Reference in New Issue
Block a user