Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
phyllers committed Nov 29, 2016
1 parent da5d7cb commit 52a2d46
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cohorts/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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':

Expand Down

0 comments on commit 52a2d46

Please sign in to comment.