Skip to content

Commit

Permalink
Custid fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvinite authored Apr 15, 2019
1 parent 7c34819 commit e096158
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions microSALT/store/lims_fetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,14 @@ def __init__(self, config, log):

def load_lims_project_info(self, cg_projid):
project = Project(self.lims, id=cg_projid)
samplelist = self.samples_in_project(cg_projid)

custids = list()
for sample in samplelist:
self.load_lims_sample_info(sample)
custids.append(self.data['Customer_ID'])
if not custids[1:] == custids[:-1]:
raise Exception("Project {} contains multiple Customer IDs".format(cg_projid))
try:
#Resolves old format
if ' ' in project.name:
Expand Down

0 comments on commit e096158

Please sign in to comment.