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)
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)
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)
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")
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)
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")