コード例 #1
0
ファイル: routes.py プロジェクト: jadesym/cs373-idb
def api_get_all_studios():
    cleanedAnimeTable = []
    for anime in studio_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_studios():
    # print(len(studio_table()))
    return render_template('studios.html', category="Studios", anime_studios=studio_table())