mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-03-03 08:51:39 -05:00
Fixed code style changes which were making the tests fail.
This commit is contained in:
committed by
Ken Tsang
parent
c4f0b4d35d
commit
2b10060e49
@@ -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/<service_id>/notification/<notification_id>.json")
|
||||
@user_has_permissions('view_activity', admin_override=True)
|
||||
def view_notification_updates(service_id, notification_id):
|
||||
|
||||
Reference in New Issue
Block a user