Commit ce8af118147d1ac794f81c75ed607638ef4abc92
1 parent
541e2936
Exists in
master
and in
3 other branches
Fix the favicon.
Showing
1 changed file
with
9 additions
and
0 deletions
Show diff stats
web/run.py
@@ -142,8 +142,17 @@ def datetime_from_list(time_list): | @@ -142,8 +142,17 @@ def datetime_from_list(time_list): | ||
142 | "%Y%j%H%M%S%f" | 142 | "%Y%j%H%M%S%f" |
143 | ) | 143 | ) |
144 | 144 | ||
145 | + | ||
145 | # ROUTING ##################################################################### | 146 | # ROUTING ##################################################################### |
146 | 147 | ||
148 | +@app.route('/favicon.ico') | ||
149 | +def favicon(): | ||
150 | + return send_from_directory( | ||
151 | + join(app.root_path, 'static', 'img'), | ||
152 | + 'favicon.ico', mimetype='image/vnd.microsoft.icon' | ||
153 | + ) | ||
154 | + | ||
155 | + | ||
147 | @app.route("/") | 156 | @app.route("/") |
148 | @app.route("/home.html") | 157 | @app.route("/home.html") |
149 | @app.route("/index.html") | 158 | @app.route("/index.html") |