Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Commit

Permalink
skip samples missing location
Browse files Browse the repository at this point in the history
  • Loading branch information
rpetit3 committed Nov 8, 2017
1 parent cd889d8 commit c79ec71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/queries/samples.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ def get_public_samples(is_published=False, include_location=False):
FROM published_ena_samples AS p
LEFT JOIN sample_metadata AS m
ON p.sample_id=m.sample_id
WHERE m.location <> 'unknown/missing';"""
WHERE m.location <> 'unknown/missing' AND
m.location <> 'not collected';"""
return query_database(sql)
else:
return query_database('SELECT * FROM public_ena_samples;')
Expand Down

0 comments on commit c79ec71

Please sign in to comment.