money-series: drop the caveat field from the payload
The operator removed all caveats from the finance chart; the balance-history note is gone from the API payload too so it cannot reappear anywhere. balance_history_start, the series, totals, sources and errors are unchanged.
This commit is contained in:
1 parent
f44c4bb6bd
commit
2d2d191e11
1 file changed
+1
-5
+1
-5
@@ -3928,7 +3928,7 @@ def litellm_spend_by_day() -> tuple[dict[str, float], float, int]:
|
|||||||
|
|
||||||
def oc_balance_history() -> dict[str, float]:
|
def oc_balance_history() -> dict[str, float]:
|
||||||
"""metrics_daily.oc_balance_usd rows — the daily snapshots. Empty before
|
"""metrics_daily.oc_balance_usd rows — the daily snapshots. Empty before
|
||||||
the pipeline deployed, which is exactly the honest-history caveat."""
|
the pipeline deployed (earlier balances were never recorded)."""
|
||||||
conn = get_db()
|
conn = get_db()
|
||||||
try:
|
try:
|
||||||
rows = conn.execute(
|
rows = conn.execute(
|
||||||
@@ -4062,10 +4062,6 @@ async def _compute_money_payload() -> dict:
|
|||||||
"balance": "Open Collective current balance + daily snapshots in "
|
"balance": "Open Collective current balance + daily snapshots in "
|
||||||
"metrics_daily.oc_balance_usd",
|
"metrics_daily.oc_balance_usd",
|
||||||
},
|
},
|
||||||
"caveat": "Balance history begins "
|
|
||||||
f"{balance_history_start or 'at deployment'}: the Open "
|
|
||||||
"Collective API exposes only the current balance, so earlier "
|
|
||||||
"history does not exist and accrues from daily snapshots.",
|
|
||||||
"errors": errors,
|
"errors": errors,
|
||||||
"series": series,
|
"series": series,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user