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

Function get_collection

backend/src/flashcards/services.py:41–47  ·  view source on GitHub ↗
(
    session: Session, id: uuid.UUID, user_id: uuid.UUID
)

Source from the content-addressed store, hash-verified

39
40
41def get_collection(
42 session: Session, id: uuid.UUID, user_id: uuid.UUID
43) -> Collection | None:
44 statement = select(Collection).where(
45 Collection.id == id, Collection.user_id == user_id
46 )
47 return session.exec(statement).first()
48
49
50def create_collection(

Callers 4

test_get_collectionFunction · 0.90
test_delete_collectionFunction · 0.90

Calls

no outgoing calls

Tested by 4

test_get_collectionFunction · 0.72
test_delete_collectionFunction · 0.72