Skip to content

Commit

Permalink
Solved issue BU-ISCIII#318 Duplicate sample when selecting it for to …
Browse files Browse the repository at this point in the history
…do next after extraction
  • Loading branch information
luissian committed Sep 27, 2024
1 parent f13293d commit 0df6259
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion core/utils/samples.py
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,9 @@ def create_table_molecule_pending_use(sample_list, app_name):
use_type["data"] = list(
core.models.MoleculePreparation.objects.filter(
molecule_used_for=None, sample__in=sample_list
).values_list("sample__sample_name", "molecule_code_id", "pk")
)
.exclude(state__molecule_state_name="Completed")
.values_list("sample__sample_name", "molecule_code_id", "pk")
)
if len(use_type["data"]) > 0:
if core.models.MoleculeUsedFor.objects.filter(
Expand Down
1 change: 0 additions & 1 deletion wetlab/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3371,7 +3371,6 @@ def handling_molecules(request):
molecule_use_defined = core.utils.samples.check_if_molecule_use_defined(
__package__
)

return render(
request,
"wetlab/handling_molecules.html",
Expand Down

0 comments on commit 0df6259

Please sign in to comment.