Skip to content

Commit

Permalink
Web image fix
Browse files Browse the repository at this point in the history
  • Loading branch information
f213 committed Jan 14, 2024
1 parent b580ad2 commit c9bbd1b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/templates/html/ok.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ok
8 changes: 4 additions & 4 deletions src/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

load_dotenv()

app = Flask("confirmation_webapp")
app = Flask("confirmation_webapp", template_folder='src/templates/html')

init_sentry()

Expand All @@ -19,16 +19,16 @@ def confirm(key: str) -> str:
user = get_user_by_confirmation_link(key)

if user is None:
return render_template("html/confirmation_failure.html")
return render_template("confirmation_failure.html")

user.is_confirmed = True
user.save()

return render_template("html/confirmation_ok.html")
return render_template("confirmation_ok.html")


@app.route("/healthcheck/")
def healthcheck() -> str:
with kombu.Connection(os.getenv("CELERY_BROKER_URL")) as connection:
connection.connect()
return "ok"
return render_template("ok.html")

0 comments on commit c9bbd1b

Please sign in to comment.