summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-06-25 17:19:12 +0200
committerDaniel Friesel <derf@finalrewind.org>2022-06-25 17:19:12 +0200
commit453d8bd99915a9a2b62bf722923248a20029d5b1 (patch)
tree9d41f8320b5a1a825c1e5f6370009005f5c379d6
parentf9b10442ca00cff0f5d5361f6c4fd97282acccb0 (diff)
xml2json: always handle EVA as int
-rwxr-xr-xshare/xml2json1
1 files changed, 1 insertions, 0 deletions
diff --git a/share/xml2json b/share/xml2json
index 031df66..c81b416 100755
--- a/share/xml2json
+++ b/share/xml2json
@@ -114,6 +114,7 @@ for my $station ( $tree->findnodes('//station') ) {
my @to_delete;
for my $i ( 0 .. $#{$stations} ) {
+ $stations->[$i]{eva} = 0 + $stations->[$i]{eva};
my $j_station = $stations->[$i];
my $j_name = $j_station->{name};
my $j_ds100 = $j_station->{ds100};