Skip to content

Commit

Permalink
🐛 Hopefully fix publish update bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Kile committed Jan 19, 2023
1 parent f9549a1 commit e000f58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion killua/cogs/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ async def publish_update(self, ctx: commands.Context):
await modal.wait()

old = DB.const.find_one({"_id": "updates"})["updates"]
old_version = old[-1:]["version"] if "version" in old else "No version"
old_version = old[-1]["version"] if len(old) > 0 and "version" in old[-1] else "No version"

if version.value in [x["version"] for x in old if "version" in x]:
return await ctx.send("This is an already existing version", ephemeral=True)
Expand Down

0 comments on commit e000f58

Please sign in to comment.