Config all processors for using two digits month number.

This commit is contained in:
Michał Zieliński
2024-12-30 20:20:28 +01:00
parent fc0a08d927
commit 5ef9cf477e
11 changed files with 117 additions and 196 deletions

View File

@@ -66,7 +66,7 @@ public class T1R1OldProcessor(
var dataSource = db.Layers.Where(x =>
x.Type == LayerType.Processed &&
!x.IsDeleted &&
x.Name != null && x.Name.Contains($"{year}/{monthCopy}-{source.Desc1}-T3")
x.Name != null && x.Name.Contains($"{year}/{monthCopy:D2}-{source.Desc1}-T3")
)
.Include(x => x.Records)
.FirstOrDefault();
@@ -81,7 +81,7 @@ public class T1R1OldProcessor(
Title = $"{processWorker.Name}, {processWorker.Id}",
Type = LogEntryType.Warning,
LogType = LogType.Process,
Message = $"Data source {year}/{month}-{source.Desc1}-T3 not found",
Message = $"Data source {year}/{month:D2}-{source.Desc1}-T3 not found",
CreatedAt = DateTime.UtcNow
});
}