Update file sizes and modification times for class files in FTP sync cache

This commit is contained in:
2025-04-27 11:32:15 +02:00
parent 056559d0f3
commit 1aa3c3a390
2 changed files with 5 additions and 5 deletions

View File

@@ -35,14 +35,14 @@
}, },
"class.Cron.php": { "class.Cron.php": {
"type": "-", "type": "-",
"size": 20273, "size": 20797,
"lmtime": 1744063175514, "lmtime": 1745446362787,
"modified": false "modified": false
}, },
"class.Products.php": { "class.Products.php": {
"type": "-", "type": "-",
"size": 8915, "size": 8924,
"lmtime": 1744489800429, "lmtime": 1745445544980,
"modified": false "modified": false
}, },
"class.Site.php": { "class.Site.php": {

View File

@@ -259,7 +259,7 @@ class Cron
$conversions_value = $offer['conversions_value']; $conversions_value = $offer['conversions_value'];
$roas = ( $conversions_value > 0 and $cost ) ? round( $conversions_value / $cost, 2 ) * 100 : 0; $roas = ( $conversions_value > 0 and $cost ) ? round( $conversions_value / $cost, 2 ) * 100 : 0;
if ( $day_count >= 30 ) if ( $mdb -> count( 'products_history', [ 'AND' => [ 'product_id' => $product_id, 'date_add[<=]' => $date_to ] ] ) >= 30 )
{ {
if ( $mdb -> count( 'products_history_30', [ 'AND' => [ 'product_id' => $product_id, 'date_add' => $date_to ] ] ) > 0 ) if ( $mdb -> count( 'products_history_30', [ 'AND' => [ 'product_id' => $product_id, 'date_add' => $date_to ] ] ) > 0 )
{ {