From 8d23ca1a79788c1d061c054d6242392d953b4508 Mon Sep 17 00:00:00 2001 From: Eduard Prigoana Date: Fri, 18 Jul 2025 18:34:09 +0300 Subject: [PATCH] Update main.py --- main.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.py b/main.py index 29cca88..365f618 100644 --- a/main.py +++ b/main.py @@ -134,6 +134,12 @@ def serve_csv(): return send_file(CSV_FILE, mimetype="text/csv", as_attachment=False) return "CSV not ready yet.", 503 +@app.route("/artists.html") +def serve_artists_html(): + if os.path.exists(HTML_FILE): + return send_file(HTML_FILE, mimetype="text/html") + return "HTML file not found.", 404 + @app.route("/") def catch_all(path): if os.path.exists(CSV_FILE):