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

Add "sum" filter #629

Merged
merged 4 commits into from
Jan 19, 2016
Merged

Add "sum" filter #629

merged 4 commits into from
Jan 19, 2016

Conversation

lazopm
Copy link
Contributor

@lazopm lazopm commented Jan 6, 2016

@@ -358,7 +358,25 @@ var filters = {

return res;
},


sum: function(arr, start, attr) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like these arguments are in the opposite order from the jinja version

@carljm
Copy link
Contributor

carljm commented Jan 6, 2016

Made a couple comments, and tests are failing (due to the same issue pointed out in my comments). But with the comments addressed, this looks good, thanks!

@lazopm
Copy link
Contributor Author

lazopm commented Jan 19, 2016

@carljm Do the tests look OK?

@carljm
Copy link
Contributor

carljm commented Jan 19, 2016

Looks good, thanks! Merging.

carljm added a commit that referenced this pull request Jan 19, 2016
@carljm carljm merged commit 2d2f5dd into mozilla:master Jan 19, 2016
carljm added a commit that referenced this pull request Jan 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants