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

@@ -75,7 +75,7 @@ public class T4R2Processor(
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 dataSource = db.Layers.Where(x =>