From a6ca1b33928aaffa051668385fd0fd9679a2fdf9 Mon Sep 17 00:00:00 2001 From: = <=> Date: Mon, 17 Jun 2024 22:23:53 +0200 Subject: [PATCH] Changed return from full result to just True or False --- titles/diva/schema/profile.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/titles/diva/schema/profile.py b/titles/diva/schema/profile.py index 06e20be..10d3b51 100644 --- a/titles/diva/schema/profile.py +++ b/titles/diva/schema/profile.py @@ -90,7 +90,7 @@ class DivaProfileData(BaseData): return None return result.lastrowid - async def update_profile(self, aime_id: int, **profile_args) -> None: + async def update_profile(self, aime_id: int, **profile_args) -> bool: """ Given an aime_id update the profile corresponding to the arguments which are the diva_profile Columns @@ -102,7 +102,9 @@ class DivaProfileData(BaseData): self.logger.error( f"update_profile: failed to update profile! profile: {aime_id}" ) - return result + return False + + return True async def get_profile(self, aime_id: int, version: int) -> Optional[List[Dict]]: """