Пример #1
0
 def timezone(timeZone, listingType):
     if FrontendUtil.isValidTimeZone(timeZone) and FrontendUtil.isValidListingType(listingType):
         data = GameAction.fetchGamesXDays(5, listingType)
         gameData = FrontendUtil.getGamesPerDay(data, SotDate.getNextXDays(5), timeZone)
         return JSON.jsonify(dict({ "gamelist" : gameData }))
     else:
         abort(404)
Пример #2
0
 def listing(listingType):
     if FrontendUtil.isValidListingType(listingType):
         fpDateRange = SotDate.getNextXDays(5)
         data = GameAction.fetchGamesXDays(5, listingType)
         filterLists = FrontendUtil.buildFilterLists(data)
         gameData = FrontendUtil.getGamesPerDay(data, fpDateRange)
         return render_template("frontpage.html", fpDateRange = fpDateRange, gameData = gameData, stationList = filterLists[0], leagueList = filterLists[1], teamList = filterLists[2], activeListingType = listingType)
     else:
         abort(404)
Пример #3
0
 def timezone(timeZone, listingType):
     if FrontendUtil.isValidTimeZone(
             timeZone) and FrontendUtil.isValidListingType(listingType):
         data = GameAction.fetchGamesXDays(5, listingType)
         gameData = FrontendUtil.getGamesPerDay(data,
                                                SotDate.getNextXDays(5),
                                                timeZone)
         return JSON.jsonify(dict({"gamelist": gameData}))
     else:
         abort(404)
Пример #4
0
 def frontpage():
     fpDateRange = SotDate.getNextXDays(5)
     data = GameAction.fetchGamesXDays(5, "cable")
     filterLists = FrontendUtil.buildFilterLists(data)
     gameData = FrontendUtil.getGamesPerDay(data, fpDateRange)
     return render_template("frontpage.html",
                            fpDateRange=fpDateRange,
                            gameData=gameData,
                            stationList=filterLists[0],
                            leagueList=filterLists[1],
                            teamList=filterLists[2],
                            activeListingType="cable")
Пример #5
0
 def listing(listingType):
     if FrontendUtil.isValidListingType(listingType):
         fpDateRange = SotDate.getNextXDays(5)
         data = GameAction.fetchGamesXDays(5, listingType)
         filterLists = FrontendUtil.buildFilterLists(data)
         gameData = FrontendUtil.getGamesPerDay(data, fpDateRange)
         return render_template("frontpage.html",
                                fpDateRange=fpDateRange,
                                gameData=gameData,
                                stationList=filterLists[0],
                                leagueList=filterLists[1],
                                teamList=filterLists[2],
                                activeListingType=listingType)
     else:
         abort(404)
Пример #6
0
 def frontpage():            
     fpDateRange = SotDate.getNextXDays(5)
     data = GameAction.fetchGamesXDays(5, "cable")
     filterLists = FrontendUtil.buildFilterLists(data)
     gameData = FrontendUtil.getGamesPerDay(data, fpDateRange)
     return render_template("frontpage.html", fpDateRange = fpDateRange, gameData = gameData, stationList = filterLists[0], leagueList = filterLists[1], teamList = filterLists[2], activeListingType = "cable")