jenkins-bot has submitted this change and it was merged.
Change subject: Un-break usd_per_second graph
......................................................................
Un-break usd_per_second graph
Screwed up merging my 'efficiency' fixes over the donation count
Change-Id: I9777efe31d710ec835ebb9ae2eb31cda31b60bc9
---
M src/components/boards/bigEnglish/bigEnglishBoard.js
M src/components/widgets/amt-per-second-chart/amt-per-second-chart.js
2 files changed, 2 insertions(+), 2 deletions(-)
Approvals:
Awight: Looks good to me, approved
jenkins-bot: Verified
diff --git a/src/components/boards/bigEnglish/bigEnglishBoard.js
b/src/components/boards/bigEnglish/bigEnglishBoard.js
index ca7d2f0..9c0b106 100644
--- a/src/components/boards/bigEnglish/bigEnglishBoard.js
+++ b/src/components/boards/bigEnglish/bigEnglishBoard.js
@@ -73,7 +73,7 @@
total = el.usd_total;
self.dayObj[d][h + 1] = { total: total, count:
el.donations };
-
+ self.secondsByHourDonationData[(d - 1) * 24 +
h] = el.usd_per_second;
runningTotal += total;
self.dailyDataArray[d] += total;
self.dailyCountArray[d] += el.donations;
diff --git
a/src/components/widgets/amt-per-second-chart/amt-per-second-chart.js
b/src/components/widgets/amt-per-second-chart/amt-per-second-chart.js
index 634e1e9..33f6998 100644
--- a/src/components/widgets/amt-per-second-chart/amt-per-second-chart.js
+++ b/src/components/widgets/amt-per-second-chart/amt-per-second-chart.js
@@ -17,7 +17,7 @@
self.needPerSecond = ['Needed Per Second'];
for( var d = 1; d < params.dayObj.length; d++ ) {
for ( var h = 1; h < 25; h++ ) {
- self.updatedGoal = self.updatedGoal -
params.dayObj[d][h];
+ self.updatedGoal = self.updatedGoal -
params.dayObj[d][h].total;
var hoursLeft = ( 31 - d) * 24 + ( 24 -
h );
self.needPerSecond[( d - 1 ) * 24 + h]
= ( hoursLeft > 0 ) ? self.updatedGoal / hoursLeft / 3600 : 0;
}
--
To view, visit https://gerrit.wikimedia.org/r/177462
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I9777efe31d710ec835ebb9ae2eb31cda31b60bc9
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/dash
Gerrit-Branch: master
Gerrit-Owner: Ejegg <[email protected]>
Gerrit-Reviewer: Awight <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits