Commit ede3f8e6 authored by Keith Jolley's avatar Keith Jolley
Browse files

Use Datastore utility methods instead of direct SQL.

parent 5e4e5395
......@@ -405,10 +405,7 @@ sub print_provenance_form_elements {
}
my $aliases;
if ( $options->{'update'} ) {
#TODO Use Datastore::get_isolate_aliases instead
$aliases =
$self->{'datastore'}->run_list_query( "SELECT alias FROM isolate_aliases WHERE isolate_id=? ORDER BY alias ", $q->param('id') );
$aliases = $self->{'datastore'}->get_isolate_aliases( $q->param('id') );
} else {
$aliases = [];
}
......@@ -418,10 +415,7 @@ sub print_provenance_form_elements {
say "</li>";
my $pubmed;
if ( $options->{'update'} ) {
#TODO Use Datastore::get_isolate_refs instead
$pubmed =
$self->{'datastore'}->run_list_query( "SELECT pubmed_id FROM refs WHERE isolate_id=? ORDER BY pubmed_id", $q->param('id') );
$pubmed = $self->{'datastore'}->get_isolate_refs( $q->param('id') );
} else {
$pubmed = [];
}
......
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