Skip to content

Commit

Permalink
PB-508: Made the unlisted icon set configurable
Browse files Browse the repository at this point in the history
By default un-list the future legacy babs.
  • Loading branch information
ltshb committed Sep 12, 2024
1 parent f975549 commit 10a1567
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. |
4 changes: 1 addition & 3 deletions app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 10a1567

Please sign in to comment.