Skip to content

Commit

Permalink
Merge pull request #363 from bento-platform/features/bento-public-ove…
Browse files Browse the repository at this point in the history
…rview-counts

add biosamples count to public_overview response
  • Loading branch information
gsfk committed Nov 28, 2022
2 parents 4e9d063 + 89228c3 commit ddaf73b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chord_metadata_service/restapi/api_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ def public_overview(_request):

# Predefined counts
individuals_count = patients_models.Individual.objects.all().count()
biosamples_count = pheno_models.Biosample.objects.all().count()
experiments_count = experiments_models.Experiment.objects.all().count()

# Early return when there is not enough data
Expand All @@ -363,6 +364,7 @@ def public_overview(_request):
"fields": {},
"counts": {
"individuals": individuals_count,
"biosamples": biosamples_count,
"experiments": experiments_count
},
}
Expand Down

0 comments on commit ddaf73b

Please sign in to comment.