From c79ec71a673e7bf4881cea07988a719b8ae82852 Mon Sep 17 00:00:00 2001 From: Robert A Petit III Date: Wed, 8 Nov 2017 17:50:57 -0500 Subject: [PATCH] skip samples missing location --- api/queries/samples.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/queries/samples.py b/api/queries/samples.py index 63594f1..58f70d5 100644 --- a/api/queries/samples.py +++ b/api/queries/samples.py @@ -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;')