12345678910 |
- import time
- from typing import List
- from app import models, schemas
- from sqlalchemy.orm import Session
- def get_role_info(db: Session, id: int):
- role: models.Roles = db.query(models.Roles)\
- .filter(models.Roles.id == id).first()
- return role
|