Once again, assumed I had a flowcell object when I actually had a dictionary!
authorBrandon King <kingb@caltech.edu>
Wed, 17 Jun 2009 18:57:31 +0000 (18:57 +0000)
committerBrandon King <kingb@caltech.edu>
Wed, 17 Jun 2009 18:57:31 +0000 (18:57 +0000)
htsworkflow/frontend/samples/views.py

index 9d355e29578afbf5fe0f26db41b6b9c91b00eba5..100f3a972bc826858fd84134f683a82f5b2d41d8 100644 (file)
@@ -320,10 +320,11 @@ def _make_eland_results(flowcell_id, lane, interesting_flowcells):
     if cur_fc is None:
       return []
 
+    flowcell = Flowcell.objects.get(flowcell_id=flowcell_id)
     # Loop throw storage devices if a result has been archived
     storage_id_list = []
     if cur_fc is not None:
-        for lts in cur_fc.longtermstorage_set.all():
+        for lts in flowcell.longtermstorage_set.all():
             for sd in lts.storage_devices.all():
                 # Use barcode_id if it exists
                 if sd.barcode_id is not None and sd.barcode_id != '':