Esempio n. 1
0
File: urls.py Progetto: jtrain/nmt
def index():
    """
    Show the list of competitions.
    """
    return template("index", title="Don't Show My Team",
            leagues=settings.LEAGUES,
            games=these_rounds(conn))
Esempio n. 2
0
File: urls.py Progetto: vu-au/nmt
def index():
    """
    Show the list of competitions.
    """
    return template("index",
                    title="Don't Show My Team",
                    leagues=settings.LEAGUES,
                    games=these_rounds(conn))
Esempio n. 3
0
File: urls.py Progetto: jtrain/nmt
def league(league):
    """
    Home page, if the user doesn't have a cookie we will show them a list of
    teams that they can select from.

    The home page will always serve the same content regardless of whether the
    user has a cookie or not. We use javascript on the client side to check the
    cookie, select the league and selectively show the scores.
    """
    if league not in settings.LEAGUES.keys():
        return abort(404)

    return template("index", title="Don't Show My Team",
            leagues=settings.LEAGUES,
            games=these_rounds(conn))
Esempio n. 4
0
File: urls.py Progetto: vu-au/nmt
def league(league):
    """
    Home page, if the user doesn't have a cookie we will show them a list of
    teams that they can select from.

    The home page will always serve the same content regardless of whether the
    user has a cookie or not. We use javascript on the client side to check the
    cookie, select the league and selectively show the scores.
    """
    if league not in settings.LEAGUES.keys():
        return abort(404)

    return template("index",
                    title="Don't Show My Team",
                    leagues=settings.LEAGUES,
                    games=these_rounds(conn))