aboutsummaryrefslogtreecommitdiff
path: root/qc_app
diff options
context:
space:
mode:
Diffstat (limited to 'qc_app')
-rw-r--r--qc_app/entry.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/qc_app/entry.py b/qc_app/entry.py
index f166d4c..94bbd53 100644
--- a/qc_app/entry.py
+++ b/qc_app/entry.py
@@ -12,13 +12,22 @@ from flask import (
redirect,
Blueprint,
render_template,
- current_app as app)
+ current_app as app,
+ send_from_directory)
from qc_app.db import species
from qc_app.db_utils import with_db_connection
entrybp = Blueprint("entry", __name__)
+@entrybp.route("/favicon.ico", methods=["GET"])
+def favicon():
+ """Return the favicon."""
+ return send_from_directory(os.path.join(app.root_path, "static"),
+ "images/CITGLogo.png",
+ mimetype="image/png")
+
+
def errors(rqst) -> Tuple[str, ...]:
"""Return a tuple of the errors found in the request `rqst`. If no error is
found, then an empty tuple is returned."""