diff --git a/bot/cogs/__init__.py b/bot/cogs/__init__.py index 902e7fe..780c311 100644 --- a/bot/cogs/__init__.py +++ b/bot/cogs/__init__.py @@ -13,4 +13,4 @@ def __str__(self) -> str: EXTENSIONS = [module.name for module in iter_modules(__path__, f"{__package__}.")] -VERSION: VersionInfo = VersionInfo(major=0, minor=7, micro=1, releaselevel="final") +VERSION: VersionInfo = VersionInfo(major=0, minor=7, micro=2, releaselevel="final") diff --git a/bot/cogs/pride_profiles.py b/bot/cogs/pride_profiles.py index b54dd88..e426d1e 100644 --- a/bot/cogs/pride_profiles.py +++ b/bot/cogs/pride_profiles.py @@ -31,12 +31,12 @@ async def view(self, interaction: discord.Interaction, name: str) -> None: query = """ SELECT user_id, views, name, pronouns, gender_identity, sexual_orientation, romantic_orientation FROM profiles - WHERE name = LOWER($1); + WHERE name = $1; """ update_views_count = """ UPDATE profiles SET views = views + 1 - WHERE name = LOWER($1); + WHERE name = $1; """ rows = await self.pool.fetchrow(query, name) if rows is None: diff --git a/changelog.md b/changelog.md index 9099511..41be7c4 100644 --- a/changelog.md +++ b/changelog.md @@ -1,13 +1,12 @@ -Patch to address two unnoticed bugs. For the release of v0.7.0, please see the [release notes](https://github.com/No767/Catherine-Chan/releases/tag/v0.7.0) +Patch to address pride profiles not working. For the release of v0.7.0, please see the [release notes](https://github.com/No767/Catherine-Chan/releases/tag/v0.7.0) ## ✨ TD;LR -- Addressed incorrect usage of username for pride profiles +- Addressed wrong SQL query ## 🛠️ Changes -- Defer all dictionary commands -- Implement correct usage of global names for pride profiles +- Remove lower case checking for `/pride-profiles view` ## ✨ Additions diff --git a/pyproject.toml b/pyproject.toml index 689cc42..545e67e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "catherine-chan" -version = "0.7.1" +version = "0.7.2" description = "An informational LGBTQ based discord bot" authors = ["No767 <73260931+No767@users.noreply.github.com>"] readme = "README.md"