Buckets:
| """Functionality for working with orgs.""" | |
| from sqlmodel import Session, select | |
| from app.models import Org | |
| def get_org_from_db(org_name: str, session: Session) -> Org | None: | |
| query = select(Org).where(Org.account.has(name=org_name)) # type: ignore | |
| return session.exec(query).first() | |
| def get_org_by_github_name(session: Session, github_name: str) -> Org | None: | |
| return get_org_from_db(org_name=github_name.lower(), session=session) | |
Xet Storage Details
- Size:
- 450 Bytes
- Xet hash:
- 86ce64904335a4e8cb1a3c045a232a69905dbb1436db2b4b5722f45c6d77df6d
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.