analytics/geckoboard_views.py
def get_next_colour():
    """
    Gets the next colour in the Geckoboard colour list.
    """

    colour = settings.GECKOBOARD_COLOURS[get_next_colour.cur_colour]

    get_next_colour.cur_colour += 1
    if get_next_colour.cur_colour >= len(settings.GECKOBOARD_COLOURS):
        get_next_colour.cur_colour = 0

    return colour
def get_next_colour():
    colour = settings.GECKOBOARD_COLOURS[get_next_colour.cur_colour]

    get_next_colour.cur_colour += 1
    if get_next_colour.cur_colour >= len(settings.GECKOBOARD_COLOURS):
        get_next_colour.cur_colour = 0

    return colour
def get_next_colour ( ) : colour = settings . GECKOBOARD_COLOURS [ get_next_colour . cur_colour ] get_next_colour . cur_colour += 1 if get_next_colour . cur_colour >= len ( settings . GECKOBOARD_COLOURS ) : get_next_colour . cur_colour = 0 return colour
Gets the next colour in the Geckoboard colour list.
Gets the next colour in the Geckoboard colour list .