Skip to content

Commit

Permalink
Merge pull request #1402 from driusan/RemoveInefficientStatsQuery
Browse files Browse the repository at this point in the history
Remove inefficiency query from stats page
  • Loading branch information
driusan committed Nov 13, 2015
2 parents 00cd760 + b80680c commit c9e7d82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions modules/statistics/php/NDB_Form_statistics.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,7 @@ class NDB_Form_statistics extends NDB_Form
}
// MRI INTEGRITY STATS
// MRI parameter form is completed, but nothing in tarchive
/*
$DB->select("SELECT COUNT(distinct f.CommentID) as val,
s.CenterID as CenterID
FROM flag f JOIN session s ON (f.SessionID=s.ID)
Expand All @@ -382,6 +383,7 @@ class NDB_Form_statistics extends NDB_Form
foreach($result as $row) {
$this->tpl_data['mri_errors'][$row['CenterID']]['no_tarchive'] = $row['val'];
}
*/

// MRI parameter form completed, but nothing in browser
$DB->select("SELECT s.CenterID as CenterID,
Expand Down
4 changes: 2 additions & 2 deletions modules/statistics/templates/form_stats_MRI.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
<tr class="info">
<th>No Parameter Form Completed</th>
<th>Nothing in Imaging Browser for Form</th>
<th>No tarchive Entry for Form</th>
{* <th>No tarchive Entry for Form</th> *}
<th>Breakdown of Problems</th>
</tr>
</thead>
Expand All @@ -101,7 +101,7 @@
<tr>
<td>{$mri_errors[$center.NumericID].no_parameter}</td>
<td>{$mri_errors[$center.NumericID].no_browser}</td>
<td>{$mri_errors[$center.NumericID].no_tarchive}</td>
{* <td>{$mri_errors[$center.NumericID].no_tarchive}</td> *}
<td><a href="?test_name=statistics&submenu=statistics_mri_site&CenterID={$mri_center}&ProjectID={$mri_project}">Click Here for breakdown per participant</a></td>
</tr>
{/foreach}
Expand Down

0 comments on commit c9e7d82

Please # to comment.