diff --git a/royalpack/commands/userinfo.py b/royalpack/commands/userinfo.py index 487bd072..d77b8eff 100644 --- a/royalpack/commands/userinfo.py +++ b/royalpack/commands/userinfo.py @@ -19,7 +19,7 @@ class UserinfoCommand(Command): if username is None: user: User = await data.get_author(error_if_none=True) else: - found: Optional[User] = await asyncify(Alias.find_by_alias, self.alchemy, data.session, username) + found: Optional[User] = await Alias.find_user(self.alchemy, data.session, username) if not found: raise InvalidInputError("Utente non trovato.") else: diff --git a/royalpack/tables/triviascores.py b/royalpack/tables/triviascores.py index 88bd2b13..b5650b5e 100644 --- a/royalpack/tables/triviascores.py +++ b/royalpack/tables/triviascores.py @@ -43,4 +43,4 @@ class TriviaScore: return (self.correct_answers + self.correct_answers * self.correct_rate) * 10 def __repr__(self): - return f"" + return f""