fix(demography): verify D01-D06 in isolated QA with INE traceability
This commit is contained in:
@@ -198,7 +198,7 @@ final class SectorContentAnalysis
|
||||
* @param list<string> $ids
|
||||
* @return list<array<string,mixed>>
|
||||
*/
|
||||
public function forTerritories(array $ids): array
|
||||
public function forTerritories(array $ids, string $sector = 'general'): array
|
||||
{
|
||||
if (! app(LegacyContent::class)->available() || $ids === []) {
|
||||
return [];
|
||||
@@ -213,7 +213,9 @@ final class SectorContentAnalysis
|
||||
}
|
||||
$result = [];
|
||||
foreach (config('legacy_content.articles', []) as $slug => $identity) {
|
||||
if ($identity['group'] !== 'turismo') {
|
||||
// Provincial articles currently cover tourism only. Never substitute
|
||||
// those ideas for another economic intention or infer missing offers.
|
||||
if ($sector !== 'tourism' || $identity['group'] !== 'turismo') {
|
||||
continue;
|
||||
}
|
||||
preg_match('/post-(\d+)-/', $identity['external_id'], $match);
|
||||
|
||||
Reference in New Issue
Block a user