Пример #1
0
def create_startlist_classification():
    # TODO pass number of athletes in each finished startlist to the template.

    startlist_finished = [(stlist.id, stlist.name)
                          for stlist in StartlistNameModel.list_measured_all()]

    return render_template('startlist/create_new_list_classification.html',
                           startlist_finished=startlist_finished)
Пример #2
0
def results_all():
    results = {}
    startlists_finished = [
        (stlist.id, stlist.name)
        for stlist in StartlistNameModel.list_measured_all()
    ]
    for startlist_id, startlist_name in startlists_finished:
        results[startlist_name] = result_list_generate(startlist_id)

    return collections.OrderedDict(sorted(results.items()))
Пример #3
0
def results():
    startlist_finished = [(stlist.id, stlist.name)
                          for stlist in StartlistNameModel.list_measured_all()]
    return render_template('startlist/results_finished_startlists_menu.html',
                           data=startlist_finished)