(
session: Session, id: uuid.UUID, user_id: uuid.UUID
)
| 39 | |
| 40 | |
| 41 | def 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 | |
| 50 | def create_collection( |
no outgoing calls