mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Make member name matching case-insensitive
This commit is contained in:
parent
6162ac9d9d
commit
46ca5f6ffb
1 changed files with 1 additions and 1 deletions
|
|
@ -87,7 +87,7 @@ async def get_system(conn, system_id: int):
|
|||
|
||||
@db_wrap
|
||||
async def get_member_by_name(conn, system_id: int, member_name: str):
|
||||
return await conn.fetchrow("select * from members where system = $1 and name = $2", system_id, member_name)
|
||||
return await conn.fetchrow("select * from members where system = $1 and lower(name) = lower($2)", system_id, member_name)
|
||||
|
||||
|
||||
@db_wrap
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue