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

Method _cleanup

uncommon_route/spend_control.py:263–265  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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
265 self._history = [r for r in self._history if r.timestamp >= cutoff]
266
267 def _save(self) -> None:
268 self._storage.save({

Callers 2

recordMethod · 0.95
_loadMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected