Skip to content

Commit

Permalink
update dependencies for patch 133122
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastientromp committed Mar 4, 2022
1 parent 6ce9182 commit efedcdd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
9 changes: 5 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
],
"dependencies": {
"@firestone-hs/hs-replay-xml-parser": "0.0.78",
"@firestone-hs/reference-data": "^0.1.197",
"@firestone-hs/reference-data": "^0.1.205",
"@types/elementtree": "^0.1.0",
"aws-sdk": "^2.1040.0",
"elementtree": "^0.1.7",
Expand Down
6 changes: 5 additions & 1 deletion src/build-battlegrounds-hero-stats-new.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,11 @@ const buildWarbandStats = (
}

for (const turnInfo of parsed) {
if (turnInfo.turn === 0 || turnInfo.totalStats == null) {
if (turnInfo.turn === 0 || turnInfo.totalStats == null || isNaN(turnInfo.totalStats)) {
continue;
}
// To avoid polluting the stats with big Tarecgosa outliers
if (turnInfo.totalStats > 20000) {
continue;
}
const existingInfo = data['' + turnInfo.turn] ?? { dataPoints: 0, totalStats: 0 };
Expand Down

0 comments on commit efedcdd

Please sign in to comment.