From 9b40eaa9572fbac6c1b598068bccd4cbf2409a41 Mon Sep 17 00:00:00 2001 From: Matthias Merz Date: Wed, 3 Jun 2020 22:12:46 +0200 Subject: [PATCH] Finance/Quote/Morningstarde.pm: fix typos, return nav as named on website --- Finance/Quote/Morningstarde.pm | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Finance/Quote/Morningstarde.pm b/Finance/Quote/Morningstarde.pm index 9ab9a94..a6c388e 100644 --- a/Finance/Quote/Morningstarde.pm +++ b/Finance/Quote/Morningstarde.pm @@ -42,11 +42,10 @@ my %wknmap = ( 'lu0454071019' => 'a0ya5q' ); -sub methods {return ('morningstarde' => \&morningstarde, - 'europe' => \&morningstarde);} +sub methods {return ('morningstarde' => \&morningstarde);} { -my @labels = ('name', 'date', 'price', 'last', 'currency'); -sub labels { return (morningstarde => \@labels, europe => \@labels); } +my @labels = ('name', 'date', 'nav', 'currency'); +sub labels { return (morningstarde => \@labels); } } @@ -100,8 +99,7 @@ sub morningstarde my $converted_price = $splitvals[1]; $converted_price =~ s/\.//g; $converted_price =~ s/,/./g; - $info{$stock,'price'} = $converted_price; - $info{$stock,'last'} = $converted_price; + $info{$stock,'nav'} = $converted_price; } };