Skip to content

Commit

Permalink
Apply suggestions by @SonQBChau
Browse files Browse the repository at this point in the history
  • Loading branch information
OrdiNeu committed Sep 20, 2024
1 parent 94334b4 commit f97bc35
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions chord_metadata_service/mohpackets/apis/clinical_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,7 @@ def list_donors(request, filters: Query[DonorFilterSchema]):
@router.get("/query/", response=List[QueryDonorSchema])
def query_donors(request, filters: DonorExplorerFilterSchema = Query(...)):
"""
Returns a list of donors with their sample IDs, treatment types, age, and primary site.
This endpoint is called by the query service and bypasses user authorization.
Used by the query service to return donors along with their sample IDs, treatment types, and primary sites.
"""
filter_dict = filters.dict()
queryset = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,6 @@ def test_with_no_filter(self):
donors = response.json()

# Calculate the number of unique programs
print(donors)
programs = {donor["program_id"] for donor in donors}
self.assertEqual(len(programs), 2) # 2 programs

Expand Down

0 comments on commit f97bc35

Please sign in to comment.