Add 7.41e patch notes with a hand-authored reading sidebar.
Ship Climperor Web 0.6.13: latest-patch summary panel, icon/innate fallbacks, and layout/scroll fixes; keep shared ability badges in git. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -38,7 +38,7 @@ import time
|
||||
import urllib.error
|
||||
from datetime import datetime, timedelta, timezone
|
||||
|
||||
from shared.http_utils import http_bytes, http_json, write_json_atomic
|
||||
from shared.http_utils import download_icons, http_bytes, http_json, write_json_atomic
|
||||
from shared.paths import ABILITY_ICONS, DATA, HERO_PORTRAITS, ITEM_ICONS
|
||||
|
||||
PATCHES_LIST_URL = "https://www.dota2.com/datafeed/patchnoteslist?language=schinese"
|
||||
@@ -336,8 +336,6 @@ def download_unit_portraits(*, delay: float) -> None:
|
||||
|
||||
def download_referenced_icons(lookup: dict, *, delay: float) -> None:
|
||||
"""Pull referenced item + ability icons into assets/ (skip existing)."""
|
||||
from http_utils import download_icons
|
||||
|
||||
item_keys = {v["key"] for v in (lookup.get("items") or {}).values() if v.get("key")}
|
||||
# Recipe scrolls share one generic icon on Steam CDN.
|
||||
recipe_keys = {k for k in item_keys if k.startswith("recipe_")}
|
||||
|
||||
Reference in New Issue
Block a user