A live bird collage card for your Home Assistant dashboard.
Update scripts/todays_detections.php
Alexandreabcbcb601871
diff --git a/scripts/todays_detections.php b/scripts/todays_detections.phpindex 131fc74a..06b0753a 100644--- a/scripts/todays_detections.php+++ b/scripts/todays_detections.php@@ -191,7 +191,7 @@ if(isset($_GET['ajax_detections']) && $_GET['ajax_detections'] == "true" ) {$iterations++;$comname = preg_replace('/ /', '_', $todaytable['Com_Name']);- $comnamegraph = preg_replace('/\'/', '__', $comname);+ $comnamegraph = str_replace("'", "\'", $todaytable['Com_Name']);$comname = preg_replace('/\'/', '', $comname);$filename = "/By_Date/".date('Y-m-d')."/".$comname."/".$todaytable['File_Name'];$filename_formatted = $todaytable['Date']."/".$comname."/".$todaytable['File_Name'];