R1/R2 fix

This commit is contained in:
Michał Zieliński
2024-12-31 17:25:02 +01:00
parent a8cc63b6d3
commit 97141d1e4c
3 changed files with 11 additions and 10 deletions

View File

@@ -59,7 +59,7 @@ public class T1R1Processor(
for (var month = 1; month <= 14; month++)
{
if (month > DateTime.UtcNow.Month && month != 13)
if (year != DateTime.UtcNow.Year || (month > DateTime.UtcNow.Month && month != 13))
{
continue;
}

View File

@@ -75,7 +75,7 @@ public class T4R2Processor(
for (var month = 1; month <= 12; month++)
{
if (month <= DateTime.UtcNow.Month)
if (year == DateTime.UtcNow.Year && month <= DateTime.UtcNow.Month)
{
var monthCopy = month;
var dataSource = db.Layers.Where(x =>