alchemy updated

This commit is contained in:
2024-11-13 14:59:05 +03:00
parent 052d1f7b9c
commit 4199cc16b4
22 changed files with 123 additions and 181 deletions

View File

@@ -181,7 +181,7 @@ class Users(CrudCollection, UserLoginModule, SelectAction):
found_employees = Employees.filter_by_active(
people_id=found_person.id, is_confirmed=True
)
found_duties = Duties.filter_active(
found_duties = Duties.filter_all(
Duties.is_confirmed == True,
Duties.id.in_(
list(found_employee.duty_id for found_employee in found_employees.data)
@@ -866,7 +866,7 @@ class OccupantTypes(CrudCollection):
@classmethod
def get_manager_occupant_type(cls):
if occupant_types := cls.filter_active(
if occupant_types := cls.filter_all(
cls.occupant_is_unique == True, cls.occupant_category_type == "MT"
).data:
return [occupant.uu_id.__str__() for occupant in occupant_types]