mirror of
https://github.com/seanbetts/steam-hardware-watch.git
synced 2026-10-06 04:04:22 +02:00
Integrate customs shipments into watch summaries
This commit is contained in:
1 parent
e76b138a46
commit
f6d93ab9d3
4 files changed
+64
No files matched your search
@@ -51,6 +51,7 @@ def build_draft(run_dir: Path):
|
||||
tracking_lines = first_n_nonempty(reports / "steamtracking-pairing-focus.txt", 8)
|
||||
steamvr_lines = first_n_nonempty(reports / "steamvr-depots-key-lines.txt", 8)
|
||||
steamos_lines = first_n_nonempty(reports / "steamos-mirror-key-lines.txt", 8)
|
||||
customs_lines = first_n_nonempty(reports / "customs-shipments-key-lines.txt", 8)
|
||||
discovered_count = count_lines(reports / "discovered-visual-assets.tsv")
|
||||
retrieved_count = count_lines(reports / "retrieved-visual-assets.tsv")
|
||||
blocked_count = count_lines(reports / "blocked-visual-assets.tsv")
|
||||
@@ -60,6 +61,7 @@ def build_draft(run_dir: Path):
|
||||
steamvr_blocked = has_nonempty(reports / "steamvr-depots-errors.txt")
|
||||
steamos_blocked = has_nonempty(reports / "steamos-mirror-errors.txt")
|
||||
valve_blocked = has_nonempty(reports / "valve-errors.txt")
|
||||
customs_blocked = has_nonempty(reports / "customs-shipments-errors.txt")
|
||||
|
||||
lines = [
|
||||
f"# Status Draft: {run_date}",
|
||||
@@ -133,6 +135,14 @@ def build_draft(run_dir: Path):
|
||||
else:
|
||||
lines.append("- No Valve key-line report found.")
|
||||
|
||||
lines.extend(["", "#### Customs / Shipments"])
|
||||
if customs_blocked:
|
||||
lines.append("- Customs shipment fetches failed or were partially blocked in this run. See `customs-shipments-errors.txt`.")
|
||||
if customs_lines:
|
||||
lines.extend([f"- `{line}`" for line in customs_lines])
|
||||
elif not customs_blocked:
|
||||
lines.append("- No relevant customs shipment rows found.")
|
||||
|
||||
lines.extend(
|
||||
[
|
||||
"",
|
||||
@@ -149,6 +159,7 @@ def build_draft(run_dir: Path):
|
||||
f"- Retrieved visual assets: `{reports / 'retrieved-visual-assets.tsv'}`",
|
||||
f"- Blocked visual assets: `{reports / 'blocked-visual-assets.tsv'}`",
|
||||
f"- Manual retry URLs: `{reports / 'manual-asset-urls.txt'}`",
|
||||
f"- Customs shipments: `{reports / 'customs-shipments.md'}`",
|
||||
]
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user