Skip to content

Commit

Permalink
Merge pull request #39 from Galithil/master
Browse files Browse the repository at this point in the history
add close date to projects from worksets
  • Loading branch information
Galithil authored Jul 27, 2016
2 parents 6af2d41 + 65c3f42 commit abcbfe3
Show file tree
Hide file tree
Showing 2 changed files with 4 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 @@ -238,6 +238,8 @@ def build(self):
'name' : project.name,
'library' : project.udf_dict.get('Library construction method'),
'samples' : {}}
if project.closedate:
self.obj['projects'][project.luid]['close_date']=project.closedate.strftime("%Y-%m-%d")
if sample.name not in self.obj['projects'][project.luid]['samples']:
self.obj['projects'][project.luid]['samples'][sample.name]={'customer_name' : sample.udf_dict.get('Customer Name'),
'sequencing_status' : 'UNKNOWN', 'library_status' : 'UNKNOWN',
Expand Down
2 changes: 2 additions & 0 deletions LIMS2DB/flowcell_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ def create_lims_data_obj(session, pro):
for art in arts:
#lane is a string
lane=art.containerplacement.api_string.split(":")[0]
if lane.isalpha():
lane=str(ord(lane)-64)
obj['run_summary'][lane]=art.udf_dict
obj['run_summary'][lane]['qc']=art.qc_flag

Expand Down

0 comments on commit abcbfe3

Please sign in to comment.