mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2024-12-28 02:16:07 +00:00
Black
This commit is contained in:
parent
13a0b21710
commit
113391dc74
|
@ -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)
|
||||
|
||||
|
|
|
@ -44,4 +44,4 @@ INSTANCE_DIR = instance_dir
|
|||
MIGRATIONS_DIR = os.path.join(INSTANCE_DIR, "migrations")
|
||||
|
||||
# App
|
||||
APP_VERSION = importlib.metadata.version("OnlyLegs")
|
||||
APP_VERSION = importlib.metadata.version("OnlyLegs")
|
||||
|
|
|
@ -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) + ");"
|
||||
|
|
Loading…
Reference in a new issue