[search] incoherent search results Vs search filters

This commit is contained in:
plegall
2024-08-20 14:38:30 +02:00
parent 7bd8b7e274
commit 0cf2a57357
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -439,8 +439,8 @@ SELECT
$has_filters_filled = true;
$clause_for_ratio = array(
'Portrait' => 'width/height < 0.96',
'square' => 'width/height BETWEEN 0.96 AND 1.05',
'Portrait' => 'width/height < 0.95',
'square' => 'width/height BETWEEN 0.95 AND 1.05',
'Landscape' => '(width/height > 1.05 AND width/height < 2)',
'Panorama' => 'width/height >= 2',
);
+1 -1
View File
@@ -649,7 +649,7 @@ SELECT
foreach ($filter_rows as $row)
{
$r = floor($row['width'] / $row['height'] * 100) / 100;
$r = $row['width'] / $row['height'];
if ($r < 0.95)
{
$ratios['Portrait']++;