test time fixes and bonus letter removal

This commit is contained in:
stvnrlly
2022-11-22 17:03:42 -05:00
parent 86b28e5e44
commit ca1897973a
20 changed files with 6 additions and 618 deletions

View File

@@ -44,7 +44,6 @@ from app.utils import (
)
from app.utils.csv import generate_notifications_csv
from app.utils.letters import (
get_letter_printing_statement,
get_letter_validation_error,
)
from app.utils.templates import get_template
@@ -120,7 +119,6 @@ def view_notification(service_id, notification_id):
else:
job = None
letter_print_day = get_letter_printing_statement(notification['status'], notification['created_at'])
notification_created = parser.parse(notification['created_at']).replace(tzinfo=None)
@@ -138,12 +136,6 @@ def view_notification(service_id, notification_id):
service_id=current_service.id,
job_id=request.args.get('from_job'),
)
elif request.args.get('from_uploaded_letters'):
back_link = url_for(
'main.uploaded_letters',
service_id=current_service.id,
letter_print_day=request.args.get('from_uploaded_letters'),
)
else:
back_link = url_for(
'main.view_notifications',
@@ -185,7 +177,6 @@ def view_notification(service_id, notification_id):
postage=notification['postage'],
can_receive_inbound=(current_service.has_permission('inbound_sms')),
is_precompiled_letter=notification['template']['is_precompiled_letter'],
letter_print_day=letter_print_day,
show_cancel_button=show_cancel_button,
sent_with_test_key=(
notification.get('key_type') == KEY_TYPE_TEST