From 9c7f6e9a017a34b5ecce4c47b0042705a540bcfc Mon Sep 17 00:00:00 2001 From: Stef Date: Sun, 31 Aug 2025 15:45:49 +0200 Subject: [PATCH] Changed page title and added a favicon --- app.py | 7 ++++++- static/favicon.svg | 23 +++++++++++++++++++++++ templates/home.html | 11 ++++++----- 3 files changed, 35 insertions(+), 6 deletions(-) create mode 100644 static/favicon.svg diff --git a/app.py b/app.py index 56f92a1..62bc4b8 100644 --- a/app.py +++ b/app.py @@ -1,5 +1,5 @@ # import requests as r -from flask import jsonify, Flask, render_template +from flask import jsonify, Flask, render_template, send_file from poll_services import start_async_loop from mem import services import threading @@ -19,6 +19,11 @@ def status(): return jsonify([s.to_dict() for s in services]) +@app.route("/favicon.svg") +def favicon(): + return send_file("/static/favicon.svg") + + # Only run if directly running file if __name__ == "__main__": diff --git a/static/favicon.svg b/static/favicon.svg new file mode 100644 index 0000000..f48b466 --- /dev/null +++ b/static/favicon.svg @@ -0,0 +1,23 @@ + + + + + + + + + diff --git a/templates/home.html b/templates/home.html index 6741746..df81e65 100644 --- a/templates/home.html +++ b/templates/home.html @@ -3,12 +3,10 @@ - Debug Divs + Dashboard - + @@ -56,7 +54,10 @@ } fetchData(); // start the loop - + + \ No newline at end of file