Skip to content

Commit

Permalink
Bump to v0.7.2 #patch
Browse files Browse the repository at this point in the history
Addresses two critical issues, which is patched in this version. See changelog ~ Noelle
  • Loading branch information
No767 authored Jan 10, 2024
2 parents 2087a24 + 005a668 commit 105f002
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bot/cogs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
4 changes: 2 additions & 2 deletions bot/cogs/pride_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
7 changes: 3 additions & 4 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 105f002

Please sign in to comment.