validation requester updated

This commit is contained in:
2024-12-10 16:45:53 +03:00
parent 6ba0e37ffd
commit 4308f1e7b1
20 changed files with 671 additions and 113 deletions

View File

@@ -109,6 +109,7 @@ class Services(CrudCollection):
@classmethod
def retrieve_service_via_occupant_code(cls, occupant_code):
from databases import OccupantTypes
occupant_type = OccupantTypes.filter_by_one(
system=True,
occupant_code=occupant_code,
@@ -122,7 +123,9 @@ class Services(CrudCollection):
"occupant_code": occupant_code,
},
)
return cls.filter_one(cls.related_responsibility == occupant_type.occupant_code).data
return cls.filter_one(
cls.related_responsibility == occupant_type.occupant_code
).data
__table_args__ = ({"comment": "Services Information"},)