adds status and server time indicators. fixes checkboxes

This commit is contained in:
2025-02-10 18:22:06 +01:00
parent 2b6aebdab4
commit 0340dea4f8
6 changed files with 96 additions and 36 deletions

View File

@@ -9,6 +9,8 @@ from app.api import scraper as scraper
from app.analysis import load_data, load_analysis_modules
from datetime import datetime
views_bp = Blueprint("views", __name__)
def register_views(app):
@@ -115,4 +117,10 @@ def register_views(app):
context["results"] = results
return render_template("analyze.html", **context)
@views_bp.route('/server_time')
def server_time():
current_time = datetime.utcnow().strftime('%Y-%m-%d %H:%M:%S')
return {'server_time': current_time}
app.register_blueprint(views_bp)