Skip to content

Commit

Permalink
Fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
Xevib committed Aug 19, 2020
1 parent da05fd2 commit 29f5b73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def get_user(self, identifier, group=False):
if sys.version_info.major ==2:
shaid = sha1(str(identifier)).hexdigest()
else:
shaid = sha1(identifier.encode("utf-8")).hexdigest()
shaid = sha1(str(identifier).encode("utf-8")).hexdigest()
cur = self.conn.cursor(cursor_factory=DictCursor)
if group:
sql = 'SELECT * FROM groups WHERE shaid = %s LIMIT 1'
Expand Down

0 comments on commit 29f5b73

Please sign in to comment.