1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

Minor bugfix

This commit is contained in:
Steffo 2020-02-11 23:51:22 +01:00
parent 5d23dc7229
commit 9b793d3290
2 changed files with 2 additions and 2 deletions

View file

@ -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:

View file

@ -43,4 +43,4 @@ class TriviaScore:
return (self.correct_answers + self.correct_answers * self.correct_rate) * 10
def __repr__(self):
return f"<TriviaScore of {self.royal}: ({self.correct_answers}|{self.wrong_answers})>"
return f"<TriviaScore of {self.user}: ({self.correct_answers}|{self.wrong_answers})>"