This commit is contained in:
2022-09-25 13:55:59 +02:00
parent 064eeec5a0
commit 09396f8c98
+2 -1
View File
@@ -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 {