mast/queries.py
def _get_challenge_parts(self):
        """
        Returns the list of all parts of challenge.
        :returns: Dictionary containing names of check points and distances.
        """
        query_result = db.session.query(ChallengePart). \
            filter(ChallengePart.season_id == self.SEASON.id). \
            order_by(ChallengePart.order.asc()). \
            all()

        result = {}
        dist = 0
        for item in query_result:
            dist += item.distance
            result[dist] = item.target

        return result

        Returns the list of all parts of challenge.
        :returns: Dictionary containing names of check points and distances.
        
Returns the list of all parts of challenge.
Returns the list of all parts of challenge .
def _get_challenge_parts(self):
        query_result = db.session.query(ChallengePart). \
            filter(ChallengePart.season_id == self.SEASON.id). \
            order_by(ChallengePart.order.asc()). \
            all()
        result = {}
        dist = 0
        for item in query_result:
            dist += item.distance
            result[dist] = item.target
        return result
def _get_challenge_parts ( self ) : query_result = db . session . query ( ChallengePart ) . filter ( ChallengePart . season_id == self . SEASON . id ) . order_by ( ChallengePart . order . asc ( ) ) . all ( ) result = { } dist = 0 for item in query_result : dist += item . distance result [ dist ] = item . target return result
Returns the list of all parts of challenge.
Returns the list of all parts of challenge .
"""
        Returns the list of all parts of challenge.
        :returns: Dictionary containing names of check points and distances.
        """
Dictionary containing names of check points and distances.
Dictionary containing names of check points and distances .
self