mirror of
https://github.com/mwisnowski/mtg_python_deckbuilder.git
synced 2025-12-16 23:50:12 +01:00
feat(tagging+archetypes): add Pillowfort/Politics/Midrange/Toolbox tagging and unify archetype presence skip logic
This commit is contained in:
parent
f2a76d2ffc
commit
6d6243d6be
47 changed files with 21133 additions and 839 deletions
|
|
@ -7,7 +7,7 @@ from typing import Optional, Dict, Any
|
|||
|
||||
from fastapi import APIRouter
|
||||
from fastapi import BackgroundTasks
|
||||
from ..services.orchestrator import _ensure_setup_ready # type: ignore
|
||||
from ..services.orchestrator import _ensure_setup_ready, _run_theme_metadata_enrichment # type: ignore
|
||||
from fastapi.responses import JSONResponse
|
||||
|
||||
router = APIRouter(prefix="/themes", tags=["themes"]) # /themes/status
|
||||
|
|
@ -117,7 +117,11 @@ async def theme_refresh(background: BackgroundTasks):
|
|||
try:
|
||||
def _runner():
|
||||
try:
|
||||
_ensure_setup_ready(lambda _m: None, force=False) # export fallback triggers
|
||||
_ensure_setup_ready(lambda _m: None, force=False)
|
||||
except Exception:
|
||||
pass
|
||||
try:
|
||||
_run_theme_metadata_enrichment()
|
||||
except Exception:
|
||||
pass
|
||||
background.add_task(_runner)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue