mirror of
https://github.com/mwisnowski/mtg_python_deckbuilder.git
synced 2025-12-16 23:50:12 +01:00
feat: migrate to unified Parquet format with instant GitHub setup and 4x faster tagging
This commit is contained in:
parent
e9e949aae3
commit
8435312c8f
58 changed files with 11921 additions and 3961 deletions
|
|
@ -4,7 +4,23 @@ from pathlib import Path
|
|||
|
||||
import pytest
|
||||
|
||||
from code.headless_runner import resolve_additional_theme_inputs as _resolve_additional_theme_inputs, _parse_theme_list
|
||||
from code.headless_runner import resolve_additional_theme_inputs as _resolve_additional_theme_inputs
|
||||
|
||||
|
||||
def _parse_theme_list(themes_str: str) -> list[str]:
|
||||
"""Parse semicolon-separated theme list (helper for tests)."""
|
||||
if not themes_str:
|
||||
return []
|
||||
themes = [t.strip() for t in themes_str.split(';') if t.strip()]
|
||||
# Deduplicate while preserving order (case-insensitive)
|
||||
seen = set()
|
||||
result = []
|
||||
for theme in themes:
|
||||
key = theme.lower()
|
||||
if key not in seen:
|
||||
seen.add(key)
|
||||
result.append(theme)
|
||||
return result
|
||||
|
||||
|
||||
def _write_catalog(path: Path) -> None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue