Skip to content

Commit

Permalink
Merge pull request #912 from isb-cgc/isb-cgc-test-sp
Browse files Browse the repository at this point in the history
Sprint 37
  • Loading branch information
s-paquette authored Sep 26, 2019
2 parents 91d30fc + 59951a8 commit 8f6e1da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cohorts/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
from django.core.exceptions import ObjectDoesNotExist


def create_cohort(user, filters=None, name=None, source_id=None):
def create_cohort(user, filters=None, name=None, source_id=None, case_insens=True):

if not filters and not name:
# Can't save/edit a cohort when nothing is being changed!
Expand Down Expand Up @@ -64,7 +64,7 @@ def create_cohort(user, filters=None, name=None, source_id=None):
if source_progs:
source_prog_filters = {x: {} for x in source_progs if x not in list(barcodes.keys())}
if len(source_prog_filters):
source_prog_barcodes = get_sample_case_list_bq(source_id, source_prog_filters, long_form=True)
source_prog_barcodes = get_sample_case_list_bq(source_id, source_prog_filters, long_form=True, case_insens=True)
for prog in source_prog_barcodes:
barcodes[prog] = source_prog_barcodes[prog]

Expand Down

0 comments on commit 8f6e1da

Please sign in to comment.