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

@@ -56,9 +56,9 @@ public class T1R3Processor(
string pattern = @$"^L\d+-P-{year}/\d+-{source}-T5$";
var dataSources = db.Layers
.Where(x => !x.IsDeleted)
.Include(layer => layer.Records!) // Filter on the database side as much as possible
.AsEnumerable() // Switch to in-memory evaluation
.Where(x => Regex.IsMatch(x.Name!, pattern)) // Apply Regex filtering
.Include(layer => layer.Records!)
.AsEnumerable()
.Where(x => Regex.IsMatch(x.Name!, pattern))
.ToList();
foreach (var dataSource in dataSources)