From 10a156797e118ab7c8a0b1dc21350cdbf7cf4f46 Mon Sep 17 00:00:00 2001 From: Brice Schaffner Date: Thu, 12 Sep 2024 13:44:11 +0200 Subject: [PATCH] PB-508: Made the unlisted icon set configurable By default un-list the future legacy babs. --- README.md | 1 + app/settings.py | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b68a7de..4e87cf0 100644 --- a/README.md +++ b/README.md @@ -192,3 +192,4 @@ The service is configured by Environment Variable: | WSGI_TIMEOUT | `5` | WSGI timeout. | | GUNICORN_TMPFS_DIR | `None` |The working directory for the gunicorn workers. | | WSGI_WORKERS | `2` | The number of workers per CPU. | +| UNLISTED_ICON_SETS | `'babs'`| Comma separated list of icon set to un-list. Those sets won't be listed in the /sets endpoint. | diff --git a/app/settings.py b/app/settings.py index 00c460b..41a3d2a 100644 --- a/app/settings.py +++ b/app/settings.py @@ -15,9 +15,7 @@ ) COLORABLE_ICON_SETS = ['default'] -LEGACY_ICON_SETS = [] -UNRELEASED_ICON_SETS = ['babs-de', 'babs-fr', 'babs-it'] -UNLISTED_ICON_SETS = LEGACY_ICON_SETS + UNRELEASED_ICON_SETS +UNLISTED_ICON_SETS = os.environ.get('UNLISTED_ICON_SETS', 'babs').split(',') ICON_SET_LANGUAGE = {'babs-de': 'de', 'babs-fr': 'fr', 'babs-it': 'it'} DEFAULT_COLOR = {"r": '255', "g": '0', "b": '0'} DEFAULT_ICON_SIZE = 48