#14 added custom method to create data dirs

This commit is contained in:
Alok Saldanha
2020-01-01 01:24:18 -05:00
parent 736541c4ec
commit 201f876341
5 changed files with 48 additions and 11 deletions
+8 -2
View File
@@ -17,6 +17,7 @@ import json
from flask import (
Flask,
redirect,
make_response,
render_template,
request,
send_from_directory,
@@ -163,11 +164,16 @@ if env.enable_upload:
def filecrawl():
entries = recurse_dir(env.cellxgene_data)
rendered_html = render_entries(entries)
return render_template(
resp = make_response(render_template(
"filecrawl.html",
extra_scripts=get_extra_scripts(),
rendered_html=rendered_html,
)
))
resp.headers["Cache-Control"] = "no-cache, no-store, must-revalidate"
resp.headers["Pragma"] = "no-cache"
resp.headers["Expires"] = "0"
resp.headers['Cache-Control'] = 'public, max-age=0'
return resp
@app.route("/filecrawl/<path:path>")
def do_filecrawl(path):