diff --git a/cogs/map_testing/__init__.py b/cogs/map_testing/__init__.py index 858739d..ab791d7 100644 --- a/cogs/map_testing/__init__.py +++ b/cogs/map_testing/__init__.py @@ -142,8 +142,8 @@ async def validate_submission(self, isubm: InitialSubmission): if exists: raise ValueError('A channel for this map already exists') - query = 'SELECT TRUE FROM stats_maps_static WHERE name = $1;' - released = await self.bot.pool.fetchrow(query, isubm.name) + query = 'SELECT TRUE FROM stats_maps_static WHERE LOWER(name) = $1;' + released = await self.bot.pool.fetchrow(query, isubm.name.lower()) if released: raise ValueError('A map with that name is already released') except ValueError as exc: