diff --git a/scripts/overview.php b/scripts/overview.php index 1da9e8ce..ab41d279 100644 --- a/scripts/overview.php +++ b/scripts/overview.php @@ -315,6 +315,7 @@ function setModalText(iter, title, text, authorlink, photolink, licenseurl) { prepare(" SELECT d_today.Com_Name, d_today.Sci_Name, d_today.Date, d_today.Time, d_today.Confidence, d_today.File_Name, MAX(d_today.Confidence) as MaxConfidence, + COUNT(d_today.Com_Name) as OccurrenceCount, (SELECT MAX(Date) FROM detections d_prev WHERE d_prev.Com_Name = d_today.Com_Name AND d_prev.Date < DATE('now', 'localtime')) as LastSeenDate FROM detections d_today WHERE d_today.Date = DATE('now', 'localtime') @@ -408,6 +409,9 @@ function display_species($species_list, $title, $show_last_seen=false) { } else { $last_seen_text = $todaytable['Time']; } + + // Get the occurrence count for this species + $occurrence_count = $todaytable['OccurrenceCount']; ?>
@@ -427,7 +431,7 @@ function display_species($species_list, $title, $show_last_seen=false) {
- Confidence:
+ Confidence: