| Index: sitescripts/management/bin/generateNotifications.py |
| =================================================================== |
| --- a/sitescripts/management/bin/generateNotifications.py |
| +++ b/sitescripts/management/bin/generateNotifications.py |
| @@ -23,6 +23,11 @@ |
| def generate_notifications(path): |
| notifications = load_notifications() |
| + # Ignoring notifications with variants here - we can only process those in a |
| + # URL handler. |
| + notifications["notifications"] = \ |
| + filter(lambda notification: not "variants" in notification, |
|
Sebastian Noack
2015/04/13 09:04:37
1. list comprehension > callback
2. |x not in y| >
Felix Dahlke
2015/04/15 08:53:43
Done.
|
| + notifications["notifications"]) |
| with codecs.open(path, "wb", encoding="utf-8") as file: |
| json.dump(notifications, file, ensure_ascii=False, indent=2, |
| separators=(',', ': '), sort_keys=True) |