Commit 85682c86 authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

fix computation of PK/cytotox tests availability

parent 8eb15613
Pipeline #41759 passed with stages
in 18 minutes and 28 seconds
......@@ -1936,9 +1936,9 @@ def update_compound_cached_properties(compounds_queryset=None):
)
.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(
CompoundCytotoxicityResult.objects.filter(id=OuterRef("id"))
CompoundCytotoxicityResult.objects.filter(compound__id=OuterRef("id"))
),
insilico_av=Subquery(
compounds_queryset.filter(id=OuterRef("id"))
......
Supports Markdown
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