feat: revamp multicopy flow with include/exclude conflict dialogs (#60)
Some checks failed
CI / build (push) Has been cancelled

* feat: revamp multicopy flow with include/exclude conflict dialogs

* feat: revamp multicopy flow with include/exclude conflict dialogs
This commit is contained in:
mwisnowski 2026-03-21 19:39:51 -07:00 committed by GitHub
parent 4aa41adb20
commit 1aa8e4d7e8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 665 additions and 252 deletions

View file

@ -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: