def index(): """ Show the list of competitions. """ return template("index", title="Don't Show My Team", leagues=settings.LEAGUES, games=these_rounds(conn))
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))