Remove nocache experimental

pull/1/head
Leigh Morresi 3 years ago
parent ec3f34804f
commit 604d0e0317

@ -13,7 +13,7 @@ from flask import Flask, render_template, request, send_file, send_from_director
# Local
import store
from nocache import nocache
datastore = store.ChangeDetectionStore()
@ -27,13 +27,11 @@ app.config['TEMPLATES_AUTO_RELOAD'] = True
@app.route("/", methods=['GET'])
@nocache
def main_page():
return render_template("watch-overview.html", watches=datastore.data['watching'])
@app.route("/static/<string:group>/<string:filename>", methods=['GET'])
@nocache
def static_content(group, filename):
try:
return send_from_directory("/app/static/{}".format(group), filename=filename)
@ -41,6 +39,7 @@ def static_content(group, filename):
abort(404)
def main(argv):
ssl_mode = False
port = 5000

Loading…
Cancel
Save