Skip to content

Commit

Permalink
Can query seqbin_stats instead of sequence_bin.
Browse files Browse the repository at this point in the history
  • Loading branch information
kjolley committed Jun 23, 2023
1 parent 868e056 commit b082d35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/BIGSdb/Plugins/SeqbinBreakdown.pm
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ sub get_attributes {
menutext => 'Sequence bin breakdown',
module => 'SeqbinBreakdown',
url => "$self->{'config'}->{'doclink'}/data_analysis/seqbin_breakdown.html",
version => '1.7.2',
version => '1.7.3',
dbtype => 'isolates',
section => 'breakdown,postquery',
input => 'query',
Expand Down Expand Up @@ -269,7 +269,7 @@ sub _print_interface {
$selected_ids = [];
}
my $seqbin_exists =
$self->{'datastore'}->run_query("SELECT EXISTS(SELECT * FROM sequence_bin WHERE isolate_id IN ($qry))");
$self->{'datastore'}->run_query("SELECT EXISTS(SELECT * FROM seqbin_stats WHERE isolate_id IN ($qry))");
if ( !$seqbin_exists ) {
$self->print_bad_status(
{
Expand Down

0 comments on commit b082d35

Please sign in to comment.