v0.5.84: matches origin filter, mobile gate, refresh reliability.

Ship Web refresh cache/lock, mobile demand gate, matches 职业/国服 filter, and related site updates through 0.5.84.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
voson
2026-07-29 18:31:55 +08:00
co-authored by Cursor
parent 7681fdb069
commit b01552ee6e
50 changed files with 3406 additions and 487 deletions
+2 -5
View File
@@ -57,7 +57,7 @@ from concurrent.futures import ThreadPoolExecutor, as_completed
from datetime import datetime, timezone
from shared.grid import hero_table
from shared.http_utils import download_icons, http_json
from shared.http_utils import download_icons, http_json, write_json_atomic
from shared.paths import DATA, ITEM_ICONS
OPENDOTA = "https://api.opendota.com/api"
@@ -989,10 +989,7 @@ def write_out(
"items": items_out,
"by_hero": by_hero,
}
path.parent.mkdir(parents=True, exist_ok=True)
path.write_text(
json.dumps(payload, ensure_ascii=False, indent=2) + "\n", encoding="utf-8"
)
write_json_atomic(path, payload)
def needs_player_enrich(row: dict) -> bool: