(
session: Session, collection_id: uuid.UUID, limit: int = 30
)
| 112 | |
| 113 | |
| 114 | def 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 | ) |