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