Arg... spelling!
[htsworkflow.git] / htsworkflow / frontend / samples / views.py
index 9d355e29578afbf5fe0f26db41b6b9c91b00eba5..abc4c6ea63f2038345e8bf3d17390bc37af96cfb 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 != '':