feat: implement theme stripping system with THEME_MIN_CARDS config (#55)
Some checks are pending
CI / build (push) Waiting to run

* feat: implement theme stripping system with THEME_MIN_CARDS config

* fix: call build_catalog directly to avoid argparse conflicts in CI
This commit is contained in:
mwisnowski 2026-03-19 15:27:17 -07:00 committed by GitHub
parent 1ebc2fcb3c
commit 03e2846882
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 6613 additions and 1364 deletions

View file

@ -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')))