Skip to content

Commit

Permalink
forgot to bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
jdabtieu authored Mar 14, 2021
1 parent 3b1e4b9 commit 50a4f21
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@ def check_version():
"""
Checks if CTFOJ is up to date with the latest version on GitHub
"""
curr_version = "v2.2.0"
curr_version = "v2.3.0-patch1"
try:
latest_version = requests.get(
"https://api.github.com/repos/jdabtieu/CTFOJ/releases/latest").json()["name"]
if curr_version != latest_version:
message = Markup("You are not up-to-date! Please notify the site administrator."
f"Current version: {curr_version}, Latest version: {latest_version}, Upgrade <a href=\"https://github.com/jdabtieu/CTFOJ/releases\">here</a>. ")
message = Markup("You are not up-to-date! Please notify the site administrator. "
f"Current version: {curr_version}, Latest version: {latest_version}. Upgrade <a href=\"https://github.com/jdabtieu/CTFOJ/releases\">here</a>. ")
flash(message, "danger")

except Exception:
Expand Down

0 comments on commit 50a4f21

Please sign in to comment.