mirror of
https://github.com/mwisnowski/mtg_python_deckbuilder.git
synced 2026-04-05 20:57:16 +02:00
feat: replace ENABLE_SMART_LANDS env var with per-build checkbox in New Deck modal (#64)
This commit is contained in:
parent
94765622ba
commit
b808f411ea
13 changed files with 1209 additions and 5046 deletions
|
|
@ -2516,6 +2516,7 @@ def start_build_ctx(
|
|||
include_cards: List[str] | None = None,
|
||||
exclude_cards: List[str] | None = None,
|
||||
swap_mdfc_basics: bool | None = None,
|
||||
enable_smart_lands: bool | None = None,
|
||||
partner_feature_enabled: bool | None = None,
|
||||
secondary_commander: str | None = None,
|
||||
background_commander: str | None = None,
|
||||
|
|
@ -2682,6 +2683,8 @@ def start_build_ctx(
|
|||
pass
|
||||
# Smart land analysis — mirrors run_deck_build_step2() so web builds get profiles too
|
||||
try:
|
||||
if enable_smart_lands is not None:
|
||||
b.enable_smart_lands = bool(enable_smart_lands)
|
||||
b.run_land_analysis()
|
||||
except Exception:
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue