コード例 #1
0
ファイル: routes.py プロジェクト: jadesym/cs373-idb
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})
コード例 #2
0
ファイル: routes.py プロジェクト: jadesym/cs373-idb
def get_actors():
    # print(actor_table())
    return render_template('actors.html', category="Actors", anime_actors=actor_table())