def index(): queries = ["wack", "dope"] counts = [build_lyric_query_stat(q) for q in queries] stats = Fetch.stats() return render_template('ui/index.html', stats=stats, counts=counts)
def stats(): return jsonify(Fetch.stats())