def event_history_raw(): return jsonify(EventLogger.get_log())
def event_history(): events = EventLogger.get_log(int(request.args.get("n", 100))) if events: return render_template("history.html", events=events) return "No history"
def event_history_raw(): return jsonify(EventLogger.get_log())
def event_history(): events = EventLogger.get_log(int(request.args.get("n", 100))) if events: return render_template("history.html", events=events) return "No history"