From 9b793d32900a5b6b0b9a55e8457600baa0ac2452 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 11 Feb 2020 23:51:22 +0100 Subject: [PATCH] Minor bugfix --- royalpack/commands/userinfo.py | 2 +- royalpack/tables/triviascores.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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""