| 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"])] |
| if not groups: |
| groups = _assign_groups(notifications) |
| response = _create_response(notifications, groups) |