diff --git a/src/Api/InterfaceControllerProvider.php b/src/Api/InterfaceControllerProvider.php index fc2864b..86c73a4 100644 --- a/src/Api/InterfaceControllerProvider.php +++ b/src/Api/InterfaceControllerProvider.php @@ -35,7 +35,7 @@ class InterfaceControllerProvider implements ControllerProviderInterface $img = "data:image/x-icon;base64,".$hit->getFeatureImgAsString($feature); $score = $hit->getEmotions()->getEmotionScore($emotion); $percentage = sprintf("%.0f %%",$score); - $blocks[] = [ + $blocks[$i] = [ 'hit_id' => $hit->getId(), 'img_data' => $img, 'percentage' => $percentage,