Index: sitescripts/management/bin/generateNotifications.py |
=================================================================== |
--- a/sitescripts/management/bin/generateNotifications.py |
+++ b/sitescripts/management/bin/generateNotifications.py |
@@ -23,6 +23,10 @@ |
def generate_notifications(path): |
notifications = load_notifications() |
+ # Ignoring notifications with variants here - we can only process those in a |
+ # URL handler. |
+ notifications["notifications"] = [x for x in notifications |
+ if "variants" not in x] |
with codecs.open(path, "wb", encoding="utf-8") as file: |
json.dump(notifications, file, ensure_ascii=False, indent=2, |
separators=(',', ': '), sort_keys=True) |