bugfixing to course info saving method (#9)

Reviewed-on: Dniel97/artemis#9
Co-authored-by: UncleJim <unclejim@noreply.gitea.tendokyu.moe>
Co-committed-by: UncleJim <unclejim@noreply.gitea.tendokyu.moe>
This commit is contained in:
UncleJim 2024-01-12 14:32:44 +00:00 committed by Dniel97
parent 7639c2ef74
commit 74a671aff5

View File

@ -810,7 +810,9 @@ class IDACItemData(BaseData):
# This method returns a list of course_info # This method returns a list of course_info
def get_vs_course_infos_by_mode(self, aime_id: int, battle_mode: int) -> Optional[List[Row]]: def get_vs_course_infos_by_mode(self, aime_id: int, battle_mode: int) -> Optional[List[Row]]:
sql = select(vs_course_info).where(vs_course_info.c.user == aime_id, vs_course_info.c.battle_mode == battle_mode) sql = select(vs_course_info).where(
and_(vs_course_info.c.user == aime_id, vs_course_info.c.battle_mode == battle_mode)
)
result = self.execute(sql) result = self.execute(sql)
if result is None: if result is None: