Fix images fixed order

This commit is contained in:
Ruben 2016-11-03 01:10:22 +01:00
parent 8d4dc1b414
commit c975392069

View file

@ -35,7 +35,7 @@ class InterfaceControllerProvider implements ControllerProviderInterface
$img = "data:image/x-icon;base64,".$hit->getFeatureImgAsString($feature); $img = "data:image/x-icon;base64,".$hit->getFeatureImgAsString($feature);
$score = $hit->getEmotions()->getEmotionScore($emotion); $score = $hit->getEmotions()->getEmotionScore($emotion);
$percentage = sprintf("%.0f %%",$score); $percentage = sprintf("%.0f %%",$score);
$blocks[] = [ $blocks[$i] = [
'hit_id' => $hit->getId(), 'hit_id' => $hit->getId(),
'img_data' => $img, 'img_data' => $img,
'percentage' => $percentage, 'percentage' => $percentage,