-
Notifications
You must be signed in to change notification settings - Fork 1
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
Switch collection config from dict to list (fixes #11) #13
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few nits otherwise it looks good to me.
============ | ||
|
||
* Rémy Hubscher <rhubscher@mozilla.com> | ||
* Mathieu Leplatre <mathieu@mozilla.com> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably add Alexis there :)
@@ -0,0 +1,13 @@ | |||
Copyright 2017 - Mozilla Foundation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't it Mozilla Corporation there?
hooks = collection_record.get('kinto-emailer', {}).get('hooks', []) | ||
messages = [] | ||
for hook in hooks: | ||
conditions_met = all([field not in hook or field not in payload or |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can add a comment there.
Fixes #11
record_id