fmt: 'periods on file' (series may be weekly, not just monthly)
CI / test (push) Failing after 1s
CI / build-push (push) Has been skipped

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-30 12:41:20 -04:00
parent 457cdad2fb
commit a0e36996c4
+1 -1
View File
@@ -152,7 +152,7 @@ def fmt_price_trend(payload: dict, label: str = "price received") -> str:
f"{_unit_money(s['min_cents'], unit)}{_unit_money(s['max_cents'], unit)}) "
f"· {_pct(s.get('vs_normal_pct'))} vs normal")
lines.append(f"- **Recent direction:** {_delta_arrow({'up':1,'down':-1,'flat':0}[t['recent_direction']])} {t['recent_direction']}")
lines.append(f"\n_Source: {payload.get('source') or 'USDA NASS'} · {t['points']} months on file_")
lines.append(f"\n_Source: {payload.get('source') or 'USDA NASS'} · {t['points']} periods on file_")
return "\n".join(lines) + "\n"