def get_single_studio(id): from anime import get_layers_deep_string studio = studio_single(id).getCleanDict() studio.pop('_sa_instance_state') studioName = studio['name'] youtube_ids = get_youtube(studioName) return render_template('studio_single.html', youtube_ids=youtube_ids, studio=studio, id = id, shows=anime_studio(id), layer_string = get_layers_deep_string(1))
def api_get_studio(id): studio = studio_single(id).getCleanDict() studio.pop('_sa_instance_state') return jsonify({ 'results': studio})