R1/R2 fix

This commit is contained in:
Michał Zieliński
2025-01-02 12:20:55 +01:00
parent 8b86d32cad
commit 81b0592ed6
2 changed files with 3 additions and 3 deletions

View File

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

View File

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