Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
BasMonkey committed Oct 4, 2024
1 parent f994ab4 commit 267be18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ExonCov/api_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ def get_sample_by_sample_name_api(sample_name):
Returns:
The sample as a JSON object if it is found in the database
"""
sample = get_sample_by_sample_name(sample_name)
if sample:
samples = get_sample_by_sample_name(sample_name)
if samples:
samples_list = []

for sample in samples:
Expand Down

0 comments on commit 267be18

Please sign in to comment.