Example #1
0
def api_get_all_actors():
    cleanedAnimeTable = []
    for anime in actor_table():
        tempDict = (anime).getCleanDict()
        tempDict.pop('_sa_instance_state')
        cleanedAnimeTable.append(tempDict)
    return jsonify({"results": cleanedAnimeTable})
Example #2
0
def get_actors():
    # print(actor_table())
    return render_template('actors.html', category="Actors", anime_actors=actor_table())