Пример #1
0
def prizes():
    where = """
            cs.competition_type_id
        IN
            ({competition_type_id_select})
        AND
            c.start_date > (UNIX_TIMESTAMP(NOW() - INTERVAL 26 WEEK))
        """.format(competition_type_id_select=query.competition_type_id_select('Gatherling'))
    comps = comp.load_competitions(where)
    first_runs = lg.first_runs()
    view = Prizes(comps, first_runs)
    return view.page()
Пример #2
0
def prizes() -> str:
    tournaments_with_prizes = comp.tournaments_with_prizes()
    first_runs = lg.first_runs()
    view = Prizes(tournaments_with_prizes, first_runs)
    return view.page()