add scripts from cli (#680)

* add scripts from cli

* add warning when including scripts

* flake8 fixes

* confirm scripts injection
This commit is contained in:
Charlotte Weaver
2019-04-22 12:30:57 -07:00
committed by GitHub
parent 9c6273eb94
commit ea187f48e0
3 changed files with 68 additions and 38 deletions
+2 -1
View File
@@ -8,7 +8,8 @@ bp = Blueprint("webapp", __name__, template_folder="templates")
@bp.route("/")
def index():
dataset_title = current_app.config["DATASET_TITLE"]
return render_template("index.html", datasetTitle=dataset_title)
scripts = current_app.config["SCRIPTS"]
return render_template("index.html", datasetTitle=dataset_title, SCRIPTS=scripts)
@bp.route("/favicon.png")