Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug with replacing end date in dividendhistory #430

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions yahoo/finance/yahoo.finance.dividendhistory.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
encodedUrl = encodedUrl.replace('a=1','a=' + getMonth(startDate));
encodedUrl = encodedUrl.replace('b=1','b=' + getDay(startDate));
encodedUrl = encodedUrl.replace('c=2010','c=' + getYear(startDate));
encodedUrl = encodedUrl.replace('d=1','d=' + getMonth(endDate));
encodedUrl = encodedUrl.replace('e=30','e=' + getDay(endDate));
encodedUrl = encodedUrl.replace('f=2010','f=' + getYear(endDate));
encodedUrl = encodedUrl.replace('d=12','d=' + getMonth(endDate));
encodedUrl = encodedUrl.replace('e=31','e=' + getDay(endDate));
encodedUrl = encodedUrl.replace('f=2014','f=' + getYear(endDate));

var results = y.query("select * from csv(0,1) where url=@url",{url:encodedUrl});
var colNames='';
Expand Down