mirror of
https://github.com/inigoflores/ds-codigos-postales-ine-es.git
synced 2024-09-22 00:00:18 +02:00
Actualizar con el nuevo formato de archivo de 2022
This commit is contained in:
parent
640f4316b9
commit
dfaea63573
|
@ -132,7 +132,8 @@ class ProcessCommand extends ConsoleKit\Command
|
||||||
$zip->open($source);
|
$zip->open($source);
|
||||||
|
|
||||||
for( $i = 0; $i < $zip->numFiles; $i++ ) {
|
for( $i = 0; $i < $zip->numFiles; $i++ ) {
|
||||||
if (strstr($zip->statIndex($i)['name'], 'TRAM')) {
|
if (strstr($zip->statIndex($i)['name'], 'TRAM') ||
|
||||||
|
strstr($zip->statIndex($i)['name'], 'Tramero')) {
|
||||||
$zippedSourceFileName = $zip->statIndex($i)['name'];
|
$zippedSourceFileName = $zip->statIndex($i)['name'];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -150,7 +151,8 @@ class ProcessCommand extends ConsoleKit\Command
|
||||||
$zip2->open('/tmp/' . $zippedSourceFileName);
|
$zip2->open('/tmp/' . $zippedSourceFileName);
|
||||||
|
|
||||||
for( $i = 0; $i < $zip2->numFiles; $i++ ) {
|
for( $i = 0; $i < $zip2->numFiles; $i++ ) {
|
||||||
if (strstr($zip2->statIndex($i)['name'], 'TRAM')) {
|
if (strstr($zip2->statIndex($i)['name'], 'TRAM') ||
|
||||||
|
strstr($zip->statIndex($i)['name'], 'Tramero')) {
|
||||||
$zippedSourceFileName2 = $zip2->statIndex($i)['name'];
|
$zippedSourceFileName2 = $zip2->statIndex($i)['name'];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user