diff --git a/onlylegs/__init__.py b/onlylegs/__init__.py index 44c32f1..5e78f84 100644 --- a/onlylegs/__init__.py +++ b/onlylegs/__init__.py @@ -126,7 +126,7 @@ def create_app(): # pylint: disable=R0914 app.register_blueprint(api_media.blueprint) app.register_blueprint(api_group.blueprint) app.register_blueprint(api_account.blueprint) - + # FILTERS app.register_blueprint(filters.blueprint) diff --git a/onlylegs/config.py b/onlylegs/config.py index edcd808..06cd271 100644 --- a/onlylegs/config.py +++ b/onlylegs/config.py @@ -44,4 +44,4 @@ INSTANCE_DIR = instance_dir MIGRATIONS_DIR = os.path.join(INSTANCE_DIR, "migrations") # App -APP_VERSION = importlib.metadata.version("OnlyLegs") \ No newline at end of file +APP_VERSION = importlib.metadata.version("OnlyLegs") diff --git a/onlylegs/filters.py b/onlylegs/filters.py index 6a1ead2..6a869e2 100644 --- a/onlylegs/filters.py +++ b/onlylegs/filters.py @@ -6,7 +6,7 @@ from flask import Blueprint from onlylegs.utils import contrast -blueprint = Blueprint('filters', __name__) +blueprint = Blueprint("filters", __name__) @blueprint.app_template_filter() @@ -18,5 +18,5 @@ def colour_contrast(colour): """ bright = "var(--fg-white)" dark = "var(--fg-black)" - + return "color: RGB(" + contrast.contrast(colour, dark, bright) + ");"