R1/R2 fix
This commit is contained in:
@@ -451,15 +451,15 @@ public class LayersController : Controller
|
||||
|
||||
string[] processTypes =
|
||||
[
|
||||
"T3-SingleSource",
|
||||
"T3-SourceYearSummary",
|
||||
"T3-MultiSourceSummary", // AA
|
||||
"T3-MultiSourceYearSummary", // AA/13
|
||||
"T4-SingleSource",
|
||||
"T5-LastValues",
|
||||
//"T3-SingleSource",
|
||||
//"T3-SourceYearSummary",
|
||||
//"T3-MultiSourceSummary", // AA
|
||||
//"T3-MultiSourceYearSummary", // AA/13
|
||||
//"T4-SingleSource",
|
||||
//"T5-LastValues",
|
||||
//"T1-R1_OLD",
|
||||
"T1-R1",
|
||||
"T4-R2",
|
||||
//"T1-R1",
|
||||
//"T4-R2",
|
||||
"T1-R3"
|
||||
];
|
||||
|
||||
@@ -481,6 +481,7 @@ public class LayersController : Controller
|
||||
x.Records!.Any(y => y.Code == "Type" && y.Desc1 == "ProcessWorker") &&
|
||||
x.Records!.Any(y => y.Code == "IsEnabled" && y.Desc1 == "True") &&
|
||||
x.Records!.Any(y => y.Code == "ProcessType" && y.Desc1 == type)
|
||||
&& x.Number == 4175
|
||||
)
|
||||
.OrderBy(x => x.CreatedAt)
|
||||
.ToList();
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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 =>
|
||||
|
||||
Reference in New Issue
Block a user