Skip Menu |
 

This queue is for tickets about the Finance-Quote CPAN distribution.

Report information
The Basics
Id: 83862
Status: new
Priority: 0/
Queue: Finance-Quote

People
Owner: Nobody in particular
Requestors: prasanthvr [...] yahoo.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Bug in IndiaMutual.pm in Finance-Quote 1.18 and its fix
Date: Mon, 11 Mar 2013 02:59:14 +0800 (SGT)
To: "bug-Finance-Quote [...] rt.cpan.org" <bug-Finance-Quote [...] rt.cpan.org>
From: Prasanth V R <prasanthvr [...] yahoo.com>
Download (untitled) / with headers
text/plain 1.1k
Hi all, IndiaMutual.pm in Finance::Quote 1.18 doesn't work - the data format has changed. The following patch fixes it: --- IndiaMutual.pm      2013-03-11 00:21:58.565689187 +0530 +++ IndiaMutual.my.pm   2013-03-11 00:22:48.411519743 +0530 @@ -89,11 +89,11 @@           my $data = $allquotes{$symbol};         if ($data) { -            $fundquote{$symbol, "name"} = $data->[4]; -            $fundquote{$symbol, "nav"} = $data->[5]; -            $fundquote{$symbol, "rprice"} = $data->[6]; -            $fundquote{$symbol, "sprice"} = $data->[7]; -            $quoter->store_date(\%fundquote, $symbol, {eurodate => $data->[8]}); +            $fundquote{$symbol, "name"} = $data->[2]; +            $fundquote{$symbol, "nav"} = $data->[3]; +            $fundquote{$symbol, "rprice"} = $data->[4]; +            $fundquote{$symbol, "sprice"} = $data->[5]; +            $quoter->store_date(\%fundquote, $symbol, {eurodate => $data->[6]});              $fundquote{$symbol, "success"} = 1;         } else {             $fundquote{$symbol, "success"} = 0; This is also attached as a patch. Hope this helps, Thanks and regards, Prasanth Regy
Download IndiaMutual.patch
text/x-diff 896b

Message body is not shown because sender requested not to inline it.



This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.