Example #1
0
 def get_all_school_address():
     """
     get all school address for get all address API
     """
     return [
         address.address_type_dict(school)
         for address, school in SchoolModel.get_all_school_address()
     ]
Example #2
0
 def get_all_school_address(page: int = 1) -> (Dict, int):
     """
     get all school address for get all address API
     :param page
     """
     schools_addresses = SchoolModel.get_all_school_address(page)
     return [
         address.address_type_dict(school)
         for address, school in schools_addresses.items
     ], schools_addresses.total