Skip to content

Commit

Permalink
Merge pull request #539 from BioKIC/correct-portal-stats
Browse files Browse the repository at this point in the history
corrects calculations of total Biorepo samples on homepage
  • Loading branch information
kyule committed Aug 22, 2024
2 parents 880c80f + bc35931 commit c5b7de5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neon/classes/PortalStatistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function __destruct() {
public function getTotalNeonSamples(){
$totalSamples = '';

$sql = 'SELECT ROUND(SUM(recordcnt),-3) AS totalSamples FROM omcollectionstats AS s JOIN omcollections AS c ON s.collid = c.collid WHERE c.institutioncode IN ("NEON","ASU") AND recordcnt > 1;';
$sql = 'SELECT ROUND(SUM(recordcnt),-3) AS totalSamples FROM omcollectionstats AS s JOIN omcollections AS c ON s.collid = c.collid WHERE c.institutioncode IN ("NEON","ASU") AND c.collid NOT IN (79,95) AND recordcnt > 1;';

$result = $this->conn->query($sql);

Expand Down

0 comments on commit c5b7de5

Please sign in to comment.