alchemy updated
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user