Skip to content
Snippets Groups Projects
Commit 1a54dcab authored by Ian Longden's avatar Ian Longden
Browse files

order the sources by the priority

parent d9225cff
No related branches found
No related tags found
No related merge requests found
......@@ -685,6 +685,7 @@ GSQL
$best_gene_xref = $xref_id;
$best_gene_level = $level{$ex_db_id};
}
# if same level then use prioritys to work out best
$added++;
} else {
$removed++;
......@@ -981,7 +982,7 @@ SQL
my $i=0;
my $ins_p_sth = $self->xref->dbc->prepare("INSERT into display_xref_prioritys (source_id, priority) values(?, ?)");
my $get_source_id_sth = $self->xref->dbc->prepare("select source_id from source where name like ?");
my $get_source_id_sth = $self->xref->dbc->prepare("select source_id from source where name like ? order by priority desc");
#
# So the higher the number the better then
......
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