Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
gsfk committed May 13, 2024
1 parent 76120cb commit 9ef775a
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions bento_beacon/utils/beacon_response.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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),
},
}


Expand Down

0 comments on commit 9ef775a

Please sign in to comment.