fixed the tests and done some frontend shit

This commit is contained in:
2025-08-12 13:46:48 +02:00
parent 5fe140c4f9
commit 1ac0a13fc3
9 changed files with 777 additions and 142 deletions

10
app.py
View File

@@ -1,5 +1,5 @@
from markupsafe import Markup
from flask import Flask, render_template, request, redirect, url_for
from flask import Flask, render_template, request, redirect, url_for, send_from_directory
import markdown as md
from models import db, Problem, Solution
@@ -28,6 +28,14 @@ def setup():
# Start the background thread to scan problems
start_problem_scanner()
@app.route("/script.js")
def script():
return send_from_directory("templates", "script.js")
@app.route('/favicon.ico')
def favicon():
return send_from_directory("templates", "favicon", "favicon.ico")
@app.route('/')
def index():
db_path = Path(__file__).parent / 'problems.sqlite3'