From 52a2d46c3c2ca1216fdb2f2a794859d64ec8cb1c Mon Sep 17 00:00:00 2001 From: phyllers Date: Tue, 29 Nov 2016 14:12:44 -0800 Subject: [PATCH] fix bug --- cohorts/views.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cohorts/views.py b/cohorts/views.py index ed249fad..b9909b91 100755 --- a/cohorts/views.py +++ b/cohorts/views.py @@ -1747,10 +1747,10 @@ def set_operation(request): notes += ', ' + cohort.name ids += (cohort.id,) - start = time.time() - samples = Samples.objects.filter(cohort_id__in=ids).distinct().values_list('sample_id', 'study_id') - stop = time.time() - logger.debug('[BENCHMARKING] Time to build union sample set: ' + (stop - start).__str__()) + start = time.time() + samples = Samples.objects.filter(cohort_id__in=ids).distinct().values_list('sample_id', 'study_id') + stop = time.time() + logger.debug('[BENCHMARKING] Time to build union sample set: ' + (stop - start).__str__()) elif op == 'intersect':