mirror of
https://github.com/mwisnowski/mtg_python_deckbuilder.git
synced 2026-03-25 06:26:31 +01:00
feat: revamp multicopy flow with include/exclude conflict dialogs
This commit is contained in:
parent
4aa41adb20
commit
804c750bb2
14 changed files with 665 additions and 166 deletions
|
|
@ -150,6 +150,10 @@ async def multicopy_check(request: Request) -> HTMLResponse:
|
|||
pass
|
||||
# Detect viable archetypes
|
||||
results = bu.detect_viable_multi_copy_archetypes(tmp) or []
|
||||
# R13: Filter out archetypes whose card is in the must-exclude list
|
||||
exclude_names = {str(c).strip().lower() for c in (sess.get("exclude_cards") or [])}
|
||||
if exclude_names:
|
||||
results = [r for r in results if str(r.get("name", "")).strip().lower() not in exclude_names]
|
||||
if not results:
|
||||
# Remember this key to avoid re-checking until tags/commander change
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue