From 2b10060e49bef9c072a346ae1c5eb992d494e888 Mon Sep 17 00:00:00 2001 From: Richard Chapman Date: Tue, 27 Feb 2018 16:33:55 +0000 Subject: [PATCH] Fixed code style changes which were making the tests fail. --- app/main/views/notifications.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/main/views/notifications.py b/app/main/views/notifications.py index c88c3c13e..9aa42a2c0 100644 --- a/app/main/views/notifications.py +++ b/app/main/views/notifications.py @@ -1,6 +1,5 @@ # -*- coding: utf-8 -*- import base64 -import json from collections import ItemsView from datetime import datetime @@ -22,7 +21,7 @@ from app import ( notification_api_client, ) from app.main import main -from app.template_previews import TemplatePreview, get_page_count_for_letter +from app.template_previews import get_page_count_for_letter from app.utils import ( DELIVERED_STATUSES, FAILURE_STATUSES, @@ -122,6 +121,7 @@ def view_letter_notification_as_preview(service_id, notification_id, filetype): return base64.b64decode(preview['content']), preview['status'], ItemsView(dict(preview['headers'])) + @main.route("/services//notification/.json") @user_has_permissions('view_activity', admin_override=True) def view_notification_updates(service_id, notification_id):