Skip to content
Snippets Groups Projects
Commit 85682c86 authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

fix computation of PK/cytotox tests availability

parent 8eb15613
No related branches found
No related tags found
1 merge request!20Prepare for v1.0.3
Pipeline #41759 passed with stages
in 18 minutes and 28 seconds
...@@ -1936,9 +1936,9 @@ def update_compound_cached_properties(compounds_queryset=None): ...@@ -1936,9 +1936,9 @@ def update_compound_cached_properties(compounds_queryset=None):
) )
.values("_bindtest_av")[:1] .values("_bindtest_av")[:1]
), ),
pktest_av=Exists(CompoundPKResult.objects.filter(id=OuterRef("id"))), pktest_av=Exists(CompoundPKResult.objects.filter(compound__id=OuterRef("id"))),
cytoxtest_av=Exists( cytoxtest_av=Exists(
CompoundCytotoxicityResult.objects.filter(id=OuterRef("id")) CompoundCytotoxicityResult.objects.filter(compound__id=OuterRef("id"))
), ),
insilico_av=Subquery( insilico_av=Subquery(
compounds_queryset.filter(id=OuterRef("id")) compounds_queryset.filter(id=OuterRef("id"))
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment