MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / _current_stats_date

Method _current_stats_date

src/core/database.py:36–38  ·  view source on GitHub ↗

Return the logical date used by daily token statistics.

(self)

Source from the content-addressed store, hash-verified

34 await db.execute("PRAGMA foreign_keys = ON")
35
36 def _current_stats_date(self) -> str:
37 """Return the logical date used by daily token statistics."""
38 return date.today().isoformat()
39
40 @asynccontextmanager
41 async def _connect(self, *, write: bool = False):

Callers 5

get_dashboard_statsMethod · 0.95
increment_image_countMethod · 0.95
increment_video_countMethod · 0.95
increment_error_countMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected