diff --git a/app/private/bin/convertStatsQuick.php b/app/private/bin/convertStatsQuick.php index 661f75d..32a229d 100755 --- a/app/private/bin/convertStatsQuick.php +++ b/app/private/bin/convertStatsQuick.php @@ -237,6 +237,7 @@ function getMonthlyPageImpressionsPipeline($startDate, $endDate) { ]; } +$curYear = intval(date("Y")); for ($y = 2016; $y <= intval(date("Y")); $y++) { echo "Working on year : $y", PHP_EOL; @@ -290,7 +291,7 @@ for ($y = 2016; $y <= intval(date("Y")); $y++) { } - if ($y == 2022) { + if ($y == $curYear) { $pipe = getDailyNotiziaImpressionsPipeline( $from, $to ); } else {