1
0
mirror of https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git synced 2025-08-14 00:25:46 +02:00

чиним билд9

This commit is contained in:
MoonTestUse1
2025-01-02 00:22:32 +06:00
parent 35306ad6d2
commit 379cf83d36
4 changed files with 21 additions and 43 deletions

View File

@@ -3,6 +3,10 @@ from sqlalchemy.orm import Session
from ..models.employee import Employee
from ..utils.loggers import auth_logger
def get_employees(db: Session):
"""Get all employees"""
return db.query(Employee).all()
def get_employee(db: Session, employee_id: int):
"""Get employee by ID"""
return db.query(Employee).filter(Employee.id == employee_id).first()