# -*- coding: utf-8 -*-

"""
Blueprint for shows
"""

from . import data
from flask import Blueprint
from flask import current_app
from flask import render_template

SHOWS = Blueprint(
    'shows',
    __name__
)


@SHOWS.route("/")
def index():
    """Shows index route"""
    current_app.logger.debug("Receiving GET to shows route ('/shows')")

    return render_template(
        "shows.html",
        upcoming=data.get_upcoming_shows(),
        recent=data.get_recent_shows()
    )
