MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / _window_total

Method _window_total

uncommon_route/spend_control.py:260–261  ·  view source on GitHub ↗
(self, start: float, end: float)

Source from the content-addressed store, hash-verified

258 self._session_calls = 0
259
260 def _window_total(self, start: float, end: float) -> float:
261 return sum(r.amount for r in self._history if start <= r.timestamp <= end)
262
263 def _cleanup(self) -> None:
264 cutoff = self._now() - DAY_S

Callers 3

checkMethod · 0.95
get_spendingMethod · 0.95
statusMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected