Changeset - 3f3d86413794
[Not reviewed]
default
0 1 0
Dennis Fink - 3 years ago 2022-06-10 09:19:40
dennis.fink@c3l.lu
Pass ActiveStatusv14 to index.html
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
spaceapi/views.py
Show inline comments
 
@@ -10,25 +10,25 @@ from flask import (
 
)
 

	
 
from .auth import basicauth, httpauth
 
from .utils import ActiveStatus, ActiveStatusv14, request_wants_json
 

	
 
root_views = Blueprint("root", __name__)
 

	
 

	
 
@root_views.route("/")
 
def index():
 
    if request_wants_json():
 
        return jsonify(ActiveStatusv14())
 
    return render_template("index.html", status=ActiveStatus())
 
    return render_template("index.html", status=ActiveStatusv14())
 

	
 

	
 
@root_views.route("/status.json")
 
def status_json():
 
    return jsonify(ActiveStatusv14())
 

	
 

	
 
@root_views.route("/reload")
 
@httpauth.login_required
 
def reload():
 
    active = ActiveStatusv14()
 
    active.reload()
0 comments (0 inline, 0 general)