mirror of
https://github.com/mwisnowski/mtg_python_deckbuilder.git
synced 2026-03-25 06:26:31 +01:00
feat: implement theme stripping system with THEME_MIN_CARDS config
This commit is contained in:
parent
1ebc2fcb3c
commit
86ece36012
20 changed files with 6604 additions and 1364 deletions
|
|
@ -156,4 +156,14 @@ SIMILARITY_CACHE_MAX_AGE_DAYS = int(os.getenv('SIMILARITY_CACHE_MAX_AGE_DAYS', '
|
|||
SIMILARITY_CACHE_DOWNLOAD = os.getenv('SIMILARITY_CACHE_DOWNLOAD', '1').lower() not in ('0', 'false', 'off', 'disabled')
|
||||
|
||||
# Batch build feature flag (Build X and Compare)
|
||||
ENABLE_BATCH_BUILD = os.getenv('ENABLE_BATCH_BUILD', '1').lower() not in ('0', 'false', 'off', 'disabled')
|
||||
ENABLE_BATCH_BUILD = os.getenv('ENABLE_BATCH_BUILD', '1').lower() not in ('0', 'false', 'off', 'disabled')
|
||||
|
||||
# ----------------------------------------------------------------------------------
|
||||
# THEME CATALOG SETTINGS
|
||||
# ----------------------------------------------------------------------------------
|
||||
|
||||
# Minimum number of cards required for a theme to be kept in the system
|
||||
# Themes with fewer cards will be stripped during setup/tagging
|
||||
# Set to 1 to keep all themes with at least one card
|
||||
# Set to 0 to only strip orphaned themes (themes with zero cards)
|
||||
THEME_MIN_CARDS = max(0, int(os.getenv('THEME_MIN_CARDS', '5')))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue