From: Brandon King Date: Wed, 17 Jun 2009 18:57:31 +0000 (+0000) Subject: Once again, assumed I had a flowcell object when I actually had a dictionary! X-Git-Tag: 0.2.4~2 X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=2e48d3f7aaffa4bfdcb73fcfe82aaf3b81970ae7 Once again, assumed I had a flowcell object when I actually had a dictionary! --- diff --git a/htsworkflow/frontend/samples/views.py b/htsworkflow/frontend/samples/views.py index 9d355e2..100f3a9 100644 --- a/htsworkflow/frontend/samples/views.py +++ b/htsworkflow/frontend/samples/views.py @@ -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 != '':