MCPcopy Create free account
hub / github.com/0010aor/FlashNotes / get_collection_stats

Function get_collection_stats

backend/src/stats/services.py:114–128  ·  view source on GitHub ↗
(
    session: Session, collection_id: uuid.UUID, limit: int = 30
)

Source from the content-addressed store, hash-verified

112
113
114def get_collection_stats(
115 session: Session, collection_id: uuid.UUID, limit: int = 30
116) -> CollectionStats:
117 return CollectionStats(
118 collection_info=_get_collection_basic_info(session, collection_id),
119 recent_sessions=_get_recent_sessions(
120 session=session,
121 collection_id=collection_id,
122 limit=limit,
123 ),
124 difficult_cards=_get_difficult_cards(
125 session=session,
126 collection_id=collection_id,
127 ),
128 )

Callers 2

Calls 4

CollectionStatsClass · 0.85
_get_recent_sessionsFunction · 0.85
_get_difficult_cardsFunction · 0.85

Tested by 1