traffic_log/models.py
def all_spot_copy(self, check_start_date=False):
        """ Returns all spot copies assigned to this spot.
            If check_start_date is true, will only return
            spot copies that have started.
        """
        # two queries (since there is no OR statement).  
        # One for copy that does not expire and one for not-yet-expired copy
        active_spots = []
        q = SpotCopy.all().filter("spot =", self).filter("expire_on =", None)
        for c in AutoRetry(q):
            if not check_start_date or c.has_started():
                active_spots.append(c)
        
        q = SpotCopy.all().filter("spot =", self).filter("expire_on >", datetime.datetime.now())
        for c in AutoRetry(q):
            if not check_start_date or c.has_started():
                active_spots.append(c)
        return active_spots
 Returns all spot copies assigned to this spot.
            If check_start_date is true, will only return
            spot copies that have started.
        
Returns all spot copies assigned to this spot.
If check_start_date is true, will only return
spot copies that have started.
Returns all spot copies assigned to this spot . If check_start_date is true will only return spot copies that have started .
def all_spot_copy(self, check_start_date=False):
        active_spots = []
        q = SpotCopy.all().filter("spot =", self).filter("expire_on =", None)
        for c in AutoRetry(q):
            if not check_start_date or c.has_started():
                active_spots.append(c)
        q = SpotCopy.all().filter("spot =", self).filter("expire_on >", datetime.datetime.now())
        for c in AutoRetry(q):
            if not check_start_date or c.has_started():
                active_spots.append(c)
        return active_spots
def all_spot_copy ( self , check_start_date = False ) : active_spots = [ ] q = SpotCopy . all ( ) . filter ( "spot =" , self ) . filter ( "expire_on =" , None ) for c in AutoRetry ( q ) : if not check_start_date or c . has_started ( ) : active_spots . append ( c ) q = SpotCopy . all ( ) . filter ( "spot =" , self ) . filter ( "expire_on >" , datetime . datetime . now ( ) ) for c in AutoRetry ( q ) : if not check_start_date or c . has_started ( ) : active_spots . append ( c ) return active_spots
Returns all spot copies assigned to this spot.
Returns all spot copies assigned to this spot .
""" Returns all spot copies assigned to this spot.
            If check_start_date is true, will only return
            spot copies that have started.
        """ # two queries (since there is no OR statement).   # One for copy that does not expire and one for not-yet-expired copy
self
check_start_date