Adding detections to the spectrogram

This commit is contained in:
ehpersonal38
2022-05-20 14:25:33 -04:00
parent b071571a8f
commit 63a74499b6
2 changed files with 36 additions and 3 deletions
+1
View File
@@ -45,6 +45,7 @@ if(isset($_GET['ajax_detections']) && $_GET['ajax_detections'] == "true" && isse
// we've found our valid detection! ignore everything else from the database loop
if(strpos($headers[0],'200')) {
if($_GET['previous_detection_identifier'] == $filename) { die(); }
if($_GET['only_name'] == "true") { echo $comname.",".$filename;die(); }
if (!empty($config["FLICKR_API_KEY"])) {
// if we already searched flickr for this species before, use the previous image rather than doing an unneccesary api call