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);
$score = $hit->getEmotions()->getEmotionScore($emotion);
$percentage = sprintf("%.0f %%",$score);
$blocks[] = [
$blocks[$i] = [
'hit_id' => $hit->getId(),
'img_data' => $img,
'percentage' => $percentage,