Skip to content

Commit

Permalink
Match case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
Learath2 authored Mar 2, 2024
1 parent 08af8b8 commit 1b39ec0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cogs/map_testing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1b39ec0

Please sign in to comment.