| Index: sitescripts/notifications/web/notification.py | 
| =================================================================== | 
| --- a/sitescripts/notifications/web/notification.py | 
| +++ b/sitescripts/notifications/web/notification.py | 
| @@ -29,8 +29,6 @@ | 
| if x.count("/") == 1) | 
| groups = [] | 
| for notification in notifications: | 
| - if "variants" not in notification: | 
| - continue | 
| group_id = notification["id"] | 
| if group_id in version_groups: | 
| groups.append({"id": group_id, "variant": int(version_groups[group_id])}) | 
| @@ -104,6 +102,8 @@ | 
| version = params.get("lastVersion", [""])[0] | 
| notifications = load_notifications() | 
| groups = _determine_groups(version, notifications) | 
| + notifications = [x for x in notifications | 
| + if not ("inactive" in x and x["inactive"])] | 
| 
 
Sebastian Noack
2015/09/10 13:29:20
How about |not x.get("inactive", False)| ?
 
Felix Dahlke
2015/09/11 07:04:43
Done.
 
 | 
| if not groups: | 
| groups = _assign_groups(notifications) | 
| response = _create_response(notifications, groups) |