Skip to content

Commit

Permalink
Fix SZ market insider trading query for the DOM structure has been ch…
Browse files Browse the repository at this point in the history
…anged.
  • Loading branch information
topdna committed Apr 29, 2016
1 parent 0dec325 commit 43d6a7e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions history.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

## Change History

### v0.3.7

- Fix SZ market insider trading query for the DOM structure has been changed.

### v0.3.6

- Add insider trading query support for quotes start with `001`.
Expand Down
4 changes: 2 additions & 2 deletions lib/insider.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,11 @@ let getSzPagingInfo = function getSzPagingInfo(html){
if(!nextFn && !prevFn) { return { totalPg:1, totalCount: $('tr.cls-data-tr', this).length }; }

// gotoReportPageNo('1801_nm','tab1',2,584,11670)
global.gotoReportPageNo = (mkt, id, nIdx, totalPg, totalCount) => [totalPg, totalCount];
global.gotoReportPageNo = (mkt, id, nIdx, totalPg, totalCount) => ({totalPg, totalCount});

let pgInfo = vm.runInThisContext(nextFn||prevFn);

return {totalPg:pgInfo[0], totalCount:pgInfo[1]};
return pgInfo;
};

/**
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "star",
"author": "hustcer",
"public": true,
"version": "0.3.6",
"version": "0.3.7",
"license": "MIT",
"homepage": "http://traceinvest.com",
"description": "A STock Analysis and Research tool for terminal users.",
Expand Down

0 comments on commit 43d6a7e

Please sign in to comment.