adds status and server time indicators. fixes checkboxes
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user