fixed the tests and done some frontend shit
This commit is contained in:
10
app.py
10
app.py
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user