From 46ca5f6ffb280017e0defe64828d8140e4547be2 Mon Sep 17 00:00:00 2001 From: Ske Date: Sat, 14 Jul 2018 22:43:23 +0200 Subject: [PATCH] Make member name matching case-insensitive --- bot/pluralkit/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/pluralkit/db.py b/bot/pluralkit/db.py index c4973c73..b99aa89f 100644 --- a/bot/pluralkit/db.py +++ b/bot/pluralkit/db.py @@ -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