def _cache_get_all(user_access_area_ids, parentElectionId=None, rootElectionId=None, isListed=None): if isListed == "false": isListed = False elif isListed == "true": isListed = True result = Election.get_all(parentElectionId=parentElectionId, rootElectionId=rootElectionId, isListed=isListed) return Schema(many=True).dump(result).data
def get_all(): result = Election.get_all() return Schema(many=True).dump(result).data
def get_all(): result = Election.get_all() result = get_paginated_query(result).all() return Schema(many=True).dump(result).data
def get_all(parentElectionId=None, rootElectionId=None): result = Election.get_all(parentElectionId=parentElectionId, rootElectionId=rootElectionId) result = get_paginated_query(result).all() return Schema(many=True).dump(result).data