Skip to content

Commit

Permalink
more graciously support calver
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-psi committed Dec 12, 2024
1 parent 0ef71d7 commit daddae4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 4 additions & 0 deletions cogs/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ async def botinfo(self, ctx: Context):

version_name = VERSION_NAMES.get(revision.split("-", 1)[0])

if version_name is None: # switched to vYEAR.MONTH.MINOR
year, month, _ = revision.split(".", 2)
version_name = VERSION_NAMES.get(f"{year}.{month}")

async with self.bot.begin_db_session() as session:
users = await session.scalar(select(func.count()).select_from(Cookie))

Expand Down
3 changes: 0 additions & 3 deletions utils/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,4 @@
"v0.2.2": "parvorbital",
"v0.2.3": "Spider's Thread",
"v2024.12": "Shattered Memories",
"v2024.12.1": "Shattered Memories",
"v2024.12.2": "Shattered Memories",
"v2024.12.3": "Shattered Memories",
}

0 comments on commit daddae4

Please sign in to comment.