Removed unused route and fixed some formatting

This commit is contained in:
Martyn Inglis
2016-09-08 09:29:08 +01:00
parent 42b04f0565
commit 130698f720

View File

@@ -242,21 +242,6 @@ def view_notifications(service_id, message_type):
)
@main.route("/services/<service_id>/jobs/<job_id>/notification/<string:notification_id>")
@login_required
@user_has_permissions('view_activity', admin_override=True)
def view_notification(service_id, job_id, notification_id):
now = time.strftime('%H:%M')
return render_template(
'views/notification.html',
message=[message for message in messages if message['id'] == notification_id][0],
delivered_at=now,
uploaded_at=now,
job_id=job_id
)
def get_status_filters(service, message_type, statistics):
stats = statistics[message_type]
stats['sending'] = stats['requested'] - stats['delivered'] - stats['failed']
@@ -321,7 +306,7 @@ def _get_job_counts(job, help_argument):
job.get('notifications_failed', 0)
]
]
]
]
def get_job_partials(job):