diff --git a/main.py b/main.py index 6f1068e..c6d431f 100644 --- a/main.py +++ b/main.py @@ -7,10 +7,9 @@ import hashlib from bs4 import BeautifulSoup import csv import re -from flask import Flask, send_file +from flask import Flask, send_file, send_from_directory, abort import os import json - app = Flask(__name__) ZIP_URL = "https://docs.google.com/spreadsheets/d/1S6WwM05O277npQbaiNk-jZlXK3TdooSyWtqaWUvAI78/export?format=zip" @@ -258,23 +257,22 @@ def serve_artists_csv(): def serve_artists_xlsx(): return send_file(XLSX_FILENAME, mimetype="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet") +# Serve index.html at "/", "/index", and "/index.html" @app.route("/") -@app.route("/index.html/") +@app.route("/index") +@app.route("/index.html") def serve_index(): - # Simple index page linking to your files - return """ - -