Skip to content

Commit

Permalink
pure samples have no initial qc
Browse files Browse the repository at this point in the history
  • Loading branch information
Galithil committed Aug 18, 2016
1 parent 35d4e7e commit fbbdde8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions LIMS2DB/classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,8 @@ def get_initial_qc(self, sample):
order by pr.daterun;".format(sapid=sample.processid, tid=','.join(pc_cg.INITALQC.keys() + pc_cg.INITALQCFINISHEDLIB.keys()))
try:
oldest_qc=self.session.query(Process).from_statement(text(query)).first()
if not oldest_qc:
return None
self.obj['samples'][sample.name]['initial_qc']={}
try:
self.obj['samples'][sample.name]['initial_qc']['start_date']=oldest_qc.daterun.strftime('%Y-%m-%d')
Expand Down

0 comments on commit fbbdde8

Please sign in to comment.