diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/map_node5_net.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/map_node5_net.py b/src/map_node5_net.py index 1d67111..b8a2d9a 100644 --- a/src/map_node5_net.py +++ b/src/map_node5_net.py @@ -2,16 +2,11 @@ import json import os import flask -import flask_caching import db_handler -cache = flask_caching.Cache(config={'CACHE_TYPE': 'SimpleCache', 'CACHE_DEFAULT_TIMEOUT': 60 * 60 * 24 * 365.25}) - app = flask.Flask(__name__, template_folder='templates', static_folder='static', static_url_path='') -cache.init_app(app) - @app.route("/") def index(): @@ -37,9 +32,7 @@ def categories(): categories = db_handler.categories return categories - @app.route("/all.json") -@cache.cached() def all(): category_RADIOACTIVE = flask.request.args.get('Category') # User input is RADIOACTIVE rows = db_handler.get_all(category_RADIOACTIVE) |
