Skip to content

Commit

Permalink
Merge pull request #79 from yuchong-pan/sl-qrgen
Browse files Browse the repository at this point in the history
Added Stats
  • Loading branch information
ShaolinZhang authored Jul 25, 2018
2 parents 1057b39 + aec5dc9 commit 3938154
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hackinit/quill/app/server/services/stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ function calculateStats(){

// Count the number of people who need reimbursements
if (user.status.confirmed) {
newStats.reimbursementTotal += user.confirmation.needsReimbursement ? 1 : 0;
newStats.reimbursementTotal += user.confirmation.reimbursementAmount;
}
// Count the number of people who still need to be reimbursed
if (user.status.checkedIn) {
Expand Down
3 changes: 2 additions & 1 deletion hackshanghai/quill/app/server/services/stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,9 @@ function calculateStats(){

// Count the number of people who need reimbursements
if (user.status.confirmed) {
newStats.reimbursementTotal += user.confirmation.needsReimbursement ? 1 : 0;
newStats.reimbursementTotal += user.confirmation.reimbursementAmount;
}

// Count the number of people who still need to be reimbursed
if (user.status.checkedIn) {
newStats.reimbursementMissing += user.confirmation.reimbursementAmount;
Expand Down
2 changes: 1 addition & 1 deletion shanghaitech/app/server/services/stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ function calculateStats(){

// Count the number of people who need reimbursements
if (user.status.confirmed) {
newStats.reimbursementTotal += user.confirmation.needsReimbursement ? 1 : 0;
newStats.reimbursementTotal += user.confirmation.reimbursementAmount;
}
// Count the number of people who still need to be reimbursed
if (user.status.checkedIn) {
Expand Down

0 comments on commit 3938154

Please sign in to comment.