Skip to content

Commit

Permalink
Fix typo in lowercase sql func
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Nov 30, 2019
1 parent 792694b commit 539c233
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mautrix_telegram/db/puppet.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def get_by_custom_mxid(cls, mxid: UserID) -> Optional['Puppet']:

@classmethod
def get_by_username(cls, username: str) -> Optional['Puppet']:
return cls._select_one_or_none(func.lowercase(cls.c.username) == username)
return cls._select_one_or_none(func.lower(cls.c.username) == username)

@classmethod
def get_by_displayname(cls, displayname: str) -> Optional['Puppet']:
Expand Down

0 comments on commit 539c233

Please sign in to comment.