Exemplo n.º 1
0
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})
Exemplo n.º 2
0
def get_studios():
    # print(len(studio_table()))
    return render_template('studios.html', category="Studios", anime_studios=studio_table())