okay
This commit is contained in:
parent
017cd175fe
commit
e0b0fe4ccf
|
|
@ -74,6 +74,7 @@ public function handle(): void
|
|||
|
||||
public static function handleFor(Project $project, $year, $startWeekNumber)
|
||||
{
|
||||
logger("ProjectMosiacGeneratorJob::handleFor(week $startWeekNumber, year $year)");
|
||||
if ($project->hasInvalidMosaicFor($year, $startWeekNumber)) {
|
||||
return new NullJob();
|
||||
}
|
||||
|
|
@ -87,6 +88,8 @@ public static function handleFor(Project $project, $year, $startWeekNumber)
|
|||
'name' => sprintf('Week %d, %d', $startWeekNumber, $year),
|
||||
'path' => sprintf('%s/%s/%s', $project->download_path, 'mosaics',
|
||||
sprintf('week_%d_%d.tif', $startWeekNumber, $year)),
|
||||
'year' => $year,
|
||||
'week' => $startWeekNumber,
|
||||
]);
|
||||
return new self($mosaic);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue