Skip to content

Commit

Permalink
Canada data file changed format, "Province" field is new
Browse files Browse the repository at this point in the history
  • Loading branch information
DrHyde committed Dec 11, 2023
1 parent 052c57f commit 489b94f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build-data.nanp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ open(my $CA_operators, '<', 'data-files/COCodeStatus_ALL.csv') ||
die("Couldn't open data-files/COCodeStatus_ALL.csv: $!\n");
$csv->getline($CA_operators); # header line
$csv->getline($CA_operators); # date stamp?
my($NPA_FIELD, $CO_FIELD, $OP_FIELD) = (0, 1, 4);
# format is "NPA","CO Code (NXX)","Status","Exchange Area","Province","Company","OCN","Remarks"
my($NPA_FIELD, $CO_FIELD, $OP_FIELD) = (0, 1, 5);
while(my $row = $csv->getline($CA_operators)) {
last unless($row->[$NPA_FIELD]);
next unless($row->[$OP_FIELD]);
Expand Down

0 comments on commit 489b94f

Please sign in to comment.