diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2018-05-02 16:04:30 +0200 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2018-05-02 16:04:30 +0200 |
commit | 5ae52f9639bba7fd9dccaf70f67b0c6ffde276d6 (patch) | |
tree | a735b7c835bdb53a5d73adf73a018c4154abfca8 /talersurvey/survey/survey.py | |
parent | c3b87697034ece911722625b01d702cce4e47320 (diff) | |
download | survey-5ae52f9639bba7fd9dccaf70f67b0c6ffde276d6.tar.gz survey-5ae52f9639bba7fd9dccaf70f67b0c6ffde276d6.tar.bz2 survey-5ae52f9639bba7fd9dccaf70f67b0c6ffde276d6.zip |
providing favicon
Diffstat (limited to 'talersurvey/survey/survey.py')
-rw-r--r-- | talersurvey/survey/survey.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/talersurvey/survey/survey.py b/talersurvey/survey/survey.py index 5126963..717e3a2 100644 --- a/talersurvey/survey/survey.py +++ b/talersurvey/survey/survey.py @@ -98,6 +98,12 @@ def internal_error(e): message="Internal error", stack=traceback.format_exc()) +@app.route("/favicon.ico") +def favicon(): + print("will look into: " + os.path.join(app.root_path, 'static')) + return flask.send_from_directory(os.path.join(app.root_path, 'static'), + "favicon.ico", mimetype="image/vnd.microsoft.ico") + @app.route("/survey-stats", methods=["GET"]) def survey_stats(): stats = backend_get("tip-query", dict(instance="default")) |