From 70114181aa7b6ddf25fcc5bc19d2fd639b4716da Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 20 Sep 2021 16:29:13 +0200 Subject: [PATCH] dfsf --- files/__main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/__main__.py b/files/__main__.py index 89465229f..7bf723e2d 100644 --- a/files/__main__.py +++ b/files/__main__.py @@ -3,6 +3,7 @@ gevent.monkey.patch_all() from os import environ import secrets from flask import * +from flask_caching import Cache from flask_limiter import Limiter from flask_compress import Compress from flask_limiter.util import get_ipaddr @@ -13,7 +14,6 @@ from sqlalchemy import * from sqlalchemy.pool import QueuePool import gevent from werkzeug.middleware.proxy_fix import ProxyFix -from flask_caching import Cache import redis app = Flask(__name__, template_folder='./templates') @@ -63,8 +63,8 @@ app.config["RATELIMIT_STORAGE_URL"] = "redis://127.0.0.1" r=redis.Redis(host="127.0.0.1", decode_responses=True, ssl_cert_reqs=None) -cache = Cache(app) Markdown(app) +cache = Cache(app) Compress(app) limiter = Limiter(