From 74a671aff5e301e81f82ea5ebba94892bc81c3d5 Mon Sep 17 00:00:00 2001 From: UncleJim Date: Fri, 12 Jan 2024 14:32:44 +0000 Subject: [PATCH] bugfixing to course info saving method (#9) Reviewed-on: https://gitea.tendokyu.moe/Dniel97/artemis/pulls/9 Co-authored-by: UncleJim Co-committed-by: UncleJim --- titles/idac/schema/item.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/titles/idac/schema/item.py b/titles/idac/schema/item.py index f22cddb..b58cd4c 100644 --- a/titles/idac/schema/item.py +++ b/titles/idac/schema/item.py @@ -810,7 +810,9 @@ class IDACItemData(BaseData): # 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]]: - 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) if result is None: