Print library.library_id instead of the flowcell.library_id.
[htsworkflow.git] / htsworkflow / frontend / eland_config / views.py
index 0ffa84f9af6274212ed82b331a803460ae32b0ff..994a410cb5a3982472d465d5f0fad4d5ec85f7ee 100644 (file)
@@ -272,8 +272,8 @@ def getElandConfig(flowcell, regenerate=False):
   
   #Convert all newline conventions to unix style
   for lane in fcObj.lane_set.all():
-    data.append("# Lane%d: %d | %s" % \
-      (lane.lane_number, lane.library_id,  lane.library.library_name.replace('%', '%%')))
+    data.append("# Lane%d: %s | %s" % \
+      (lane.lane_number, unicode(lane.library.library_id),  lane.library.library_name.replace('%', '%%')))
   
   #data.append("GENOME_DIR %s" % (BASE_DIR))
   #data.append("CONTAM_DIR %s" % (BASE_DIR))