Esempio n. 1
0
 def get_all_student_address(self, page: int = 1) -> (List[Dict], int):
     """
     get all school address for get all address API
     :params page integer
     :return
     """
     try:
         self.logger.info("Get all student address list")
         students_address = StudentModel.get_all_student_address(page)
         return [address.address_type_dict(student) for address, student in students_address.items], students_address.total
     except SQLAlchemyError as error:
         self.logger.error("Error: {}".format(error))
         raise SQLCustomError(description="GET student address SQL ERROR")
Esempio n. 2
0
 def get_all_student_address():
     """
     get all school address for get all address API
     """
     return [address.address_type_dict(student) for address, student in StudentModel.get_all_student_address()]