if issubclass(value, Indicator) and value is not Indicator: g.indicators.append(value) except TypeError: pass # Landing page - redirect to observable @frontend.route("/") def index(): return redirect(url_for('frontend.ObservableView:index')) UsersView.register(frontend) UserAdminView.register(frontend) EntityView.register(frontend) IndicatorView.register(frontend) ObservableView.register(frontend) InvestigationView.register(frontend) SystemView.register(frontend) # Admin views @frontend.route("/dataflows") def dataflows(): return render_template("dataflows.html", export_templates=ExportTemplate.objects.all()) @frontend.route("/analytics") def analytics(): return render_template("analytics.html")
if issubclass(value, Indicator) and value is not Indicator: g.indicators.append(value) except TypeError: pass # Landing page - redirect to observable @frontend.route("/") def index(): return redirect(url_for('frontend.ObservableView:index')) UsersView.register(frontend) EntityView.register(frontend) IndicatorView.register(frontend) ObservableView.register(frontend) InvestigationView.register(frontend) # Admin views @frontend.route("/dataflows") def dataflows(): return render_template("dataflows.html", export_templates=ExportTemplate.objects.all()) @frontend.route("/analytics") def analytics(): return render_template("analytics.html")