From a15d6b0e275a7127a982ac295977b82f30aee992 Mon Sep 17 00:00:00 2001 From: Tobias Leuschner Date: Sun, 10 May 2026 11:38:24 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20Logo-=20und=20Favicon-Routing=20hinzuge?= =?UTF-8?q?f=C3=BCgt;=20Versionsnummer=20auf=201.0.65=20erh=C3=B6ht?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 11 +++++++++++ version.txt | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index 93c7d6b..7adbafd 100644 --- a/app.py +++ b/app.py @@ -1508,6 +1508,17 @@ def index(): @app.route('/logo.png') def r_logo(): + logo = Path(__file__).with_name('PiCopy_Logo.png') + if not logo.exists(): + try: + data = _urlreq.urlopen(f'{RAW_BASE}/PiCopy_Logo.png', timeout=15).read() + logo.write_bytes(data) + except Exception: + return '', 404 + return send_file(logo, mimetype='image/png') + +@app.route('/favicon.ico') +def r_favicon(): logo = Path(__file__).with_name('PiCopy_Logo.png') if logo.exists(): return send_file(logo, mimetype='image/png') diff --git a/version.txt b/version.txt index ef3b2e2..52fe959 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1.0.64 \ No newline at end of file +1.0.65 \ No newline at end of file