| Index: sitescripts/management/bin/generateNotifications.py |
| =================================================================== |
| --- a/sitescripts/management/bin/generateNotifications.py |
| +++ b/sitescripts/management/bin/generateNotifications.py |
| @@ -25,16 +25,16 @@ |
| notifications = load_notifications() |
| # Ignoring notifications with variants here - we can only process those in a |
| # URL handler. |
| - notifications = [x for x in notifications if "variants" in x] |
| + notifications = [x for x in notifications if 'variants' in x] |
| output = { |
| - "notifications": notifications, |
| - "version": time.strftime("%Y%m%d%H%M", time.gmtime()) |
| + 'notifications': notifications, |
| + 'version': time.strftime('%Y%m%d%H%M', time.gmtime()) |
| } |
| - with codecs.open(path, "wb", encoding="utf-8") as file: |
| + with codecs.open(path, 'wb', encoding='utf-8') as file: |
| json.dump(output, file, ensure_ascii=False, indent=2, |
| separators=(',', ': '), sort_keys=True) |
| -if __name__ == "__main__": |
| +if __name__ == '__main__': |
| setupStderr() |
| - output = get_config().get("notifications", "output") |
| + output = get_config().get('notifications', 'output') |
| generate_notifications(output) |