Skip to content

Commit

Permalink
Switched RIL search to match new division on KnowPulse.
Browse files Browse the repository at this point in the history
  • Loading branch information
laceysanderson committed Sep 11, 2019
1 parent 886bd97 commit a8130e1
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions includes/RILSearch.inc
Original file line number Diff line number Diff line change
Expand Up @@ -225,13 +225,14 @@ class RILSearch extends GermplasmSearch {
$where = [];
$joins = [];

// -- Restrict to RILs.
$where[] = 's.type_id=:type_id';
$args[':type_id'] = 3967;

// -- Remove RILL individuals.
if(!$filter_results['show_individiuals']) {
$where[] = "s.name~*'^[a-z]+-[0-9]+$'";
if($filter_results['show_individiuals']) {
$where[] = 's.type_id IN (:type_id)';
$args[':type_id'] = [3967, 6559];
}
else {
$where[] = 's.type_id=:type_id';
$args[':type_id'] = 3967;
}

// -- Genus.
Expand Down

0 comments on commit a8130e1

Please sign in to comment.