Browse Source

lotw import: only import "state" values with max 2 letters

the database field only is varchar(2) which is fine for
US states, but LoTW may include stuff like <STATE:3>NSW for
VK stations.
develop
Fabian Kurz 2 years ago
parent
commit
2e3cd1d6b0
  1. 2
      yfksubs.pl

2
yfksubs.pl

@ -5467,7 +5467,7 @@ sub lotwimport {
$grid = substr($grid, 0, 6);
}
}
elsif ($line =~ /STATE:\d+>(\w+)/) {
elsif ($line =~ /STATE:2>([A-Z]{2})/) {
$state= $1;
}
elsif ($line =~ /<eor>/) {

Loading…
Cancel
Save