From 9ef775a52756a1604bdbafa52163489c1f9f791e Mon Sep 17 00:00:00 2001 From: Gordon Krieger Date: Mon, 13 May 2024 20:11:31 +0000 Subject: [PATCH] lint --- bento_beacon/utils/beacon_response.py | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/bento_beacon/utils/beacon_response.py b/bento_beacon/utils/beacon_response.py index 4d435cd1..d995dfda 100644 --- a/bento_beacon/utils/beacon_response.py +++ b/bento_beacon/utils/beacon_response.py @@ -1,6 +1,11 @@ from flask import current_app, g, request from .katsu_utils import search_summary_statistics, overview_statistics -from .censorship import get_censorship_threshold, censored_count, censored_chart_data, MESSAGE_FOR_CENSORED_QUERY_WITH_NO_RESULTS +from .censorship import ( + get_censorship_threshold, + censored_count, + censored_chart_data, + MESSAGE_FOR_CENSORED_QUERY_WITH_NO_RESULTS, +) from .exceptions import InvalidQuery, APIException from ..constants import GRANULARITY_BOOLEAN, GRANULARITY_COUNT, GRANULARITY_RECORD @@ -58,8 +63,14 @@ def package_biosample_and_experiment_stats(stats): experiment_type_data = [{"label": key, "value": value} for key, value in experiment_type.items()] return { - "biosamples": {"count": censored_count(biosamples_count), "sampled_tissue": censored_chart_data(sampled_tissue_data)}, - "experiments": {"count": censored_count(experiments_count), "experiment_type": censored_chart_data(experiment_type_data)}, + "biosamples": { + "count": censored_count(biosamples_count), + "sampled_tissue": censored_chart_data(sampled_tissue_data), + }, + "experiments": { + "count": censored_count(experiments_count), + "experiment_type": censored_chart_data(experiment_type_data), + }, }