Skip to content

Commit

Permalink
Trim debug stuff away from query
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-preble committed Dec 9, 2024
1 parent 8780a71 commit d30ed57
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/CXGN/Dataset.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1300,13 +1300,9 @@ sub get_child_analyses {

my $analysis_info_type_id = SGN::Model::Cvterm->get_cvterm_row($self->schema, 'analysis_metadata_json', 'project_property')->cvterm_id();

my $analysis_q = "select DISTINCT project.name, project.project_id FROM nd_experiment_project
my $analysis_q = "select DISTINCT project.name, project.project_id FROM projectprop
JOIN project USING (project_id)
JOIN nd_experiment ON nd_experiment.nd_experiment_id=nd_experiment_project.nd_experiment_id
JOIN projectprop AS analysisinfo ON (project.project_id=analysisinfo.project_id)
JOIN cvterm ON cvterm.cvterm_id=nd_experiment.type_id
WHERE cvterm.name='analysis_experiment'
AND analysisinfo.type_id=$analysis_info_type_id
WHERE projectprop.type_id=$analysis_info_type_id
AND analysisinfo.value::json->>'dataset_id'=?;";
my $h = $dbh->prepare($analysis_q);
$h->execute($dataset_id);
Expand Down

0 comments on commit d30ed57

Please sign in to comment.