Make member name matching case-insensitive

This commit is contained in:
Ske 2018-07-14 22:43:23 +02:00
parent 6162ac9d9d
commit 46ca5f6ffb

View File

@ -87,7 +87,7 @@ async def get_system(conn, system_id: int):
@db_wrap @db_wrap
async def get_member_by_name(conn, system_id: int, member_name: str): 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 @db_wrap