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