mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Minor bugfix
This commit is contained in:
parent
5d23dc7229
commit
9b793d3290
2 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
|
@ -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})>"
|
||||
|
|
Loading…
Reference in a new issue