Remove unused code from update_docs.py

This commit is contained in:
Tuan-Dat Tran
2026-02-20 00:13:44 +01:00
parent ac800a0370
commit 587fb3cbfe

View File

@@ -6,7 +6,6 @@ Usage:
""" """
import json import json
import os
from pathlib import Path from pathlib import Path
@@ -56,7 +55,6 @@ def generate_deck_table(decks: list[dict]) -> str:
if not decks: if not decks:
return "*No decks defined yet.*" return "*No decks defined yet.*"
lines = ["| Deck | Colors | Commander | Archetype |", "|------|--------|-----------|-----------|"] lines = ["| Deck | Colors | Commander | Archetype |", "|------|--------|-----------|-----------|"]
color_map = {"W": "White", "U": "Blue", "B": "Black", "R": "Red", "G": "Green"}
for deck in decks: for deck in decks:
name = deck.get("name", deck.get("filename", "Unknown")) name = deck.get("name", deck.get("filename", "Unknown"))
colors = deck.get("colors", []) colors = deck.get("colors", [])