Skip to content

Commit

Permalink
fix: updated search query
Browse files Browse the repository at this point in the history
  • Loading branch information
CS76 committed Aug 20, 2024
1 parent 68b7782 commit fd934d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Actions/Coconut/SearchMolecule.php
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ private function buildDefaultStatement($offset)
} else {
return "SELECT id, COUNT(*) OVER ()
FROM molecules
WHERE is_parent = FALSE AND active = TRUE
WHERE active = TRUE AND NOT (is_parent = TRUE AND has_variants = TRUE)
ORDER BY annotation_level DESC
LIMIT {$this->size} OFFSET {$offset}";
}
Expand Down

0 comments on commit fd934d5

Please sign in to comment.