Skip to content

Commit

Permalink
fix: minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
KotRikD committed Jun 19, 2022
1 parent 0e6d2ea commit f79acf1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions helpers/userHelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ async def get_username(user_id: int) -> Union[str, None]:
)
if not r:
return None

return r.get("username", None)
return r[0]


async def user_have_hardware(user_id: int) -> bool:
Expand Down

0 comments on commit f79acf1

Please sign in to comment.