@@ -566,18 +566,18 @@ def _check_messages(service_id, template_id, upload_id, preview_row, **kwargs):
566566 "url" : url_for (
567567 "main.send_one_off" , service_id = service_id , template_id = template .id
568568 ),
569- "text" : "Back to message personalization"
569+ "text" : "Back to message personalization" ,
570570 },
571- "html" : "Back to message personalization"
571+ "html" : "Back to message personalization" ,
572572 }
573573 back_link_from_preview = {
574574 "href" : {
575575 "url" : url_for (
576576 "main.send_one_off" , service_id = service_id , template_id = template .id
577577 ),
578- "text" : "Back to message personalization"
578+ "text" : "Back to message personalization" ,
579579 },
580- "html" : "Back to message personalization"
580+ "html" : "Back to message personalization" ,
581581 }
582582 choose_time_form = None
583583 else :
@@ -586,9 +586,9 @@ def _check_messages(service_id, template_id, upload_id, preview_row, **kwargs):
586586 "url" : url_for (
587587 "main.send_messages" , service_id = service_id , template_id = template .id
588588 ),
589- "text" : "Back to upload a file"
589+ "text" : "Back to upload a file" ,
590590 },
591- "html" : "Back to upload a file"
591+ "html" : "Back to upload a file" ,
592592 }
593593 back_link_from_preview = {
594594 "href" : {
@@ -598,9 +598,9 @@ def _check_messages(service_id, template_id, upload_id, preview_row, **kwargs):
598598 template_id = template .id ,
599599 upload_id = upload_id ,
600600 ),
601- "text" : "Back to check messages"
601+ "text" : "Back to check messages" ,
602602 },
603- "html" : "Back to check messages"
603+ "html" : "Back to check messages" ,
604604 }
605605 choose_time_form = ChooseTimeForm ()
606606
@@ -786,9 +786,9 @@ def get_back_link(
786786 service_id = service_id ,
787787 template_id = template .id ,
788788 ),
789- "text" : "Back to select delivery time"
789+ "text" : "Back to select delivery time" ,
790790 },
791- "html" : "Back to select delivery time"
791+ "html" : "Back to select delivery time" ,
792792 }
793793
794794 if step_index == 0 :
@@ -799,9 +799,9 @@ def get_back_link(
799799 ".choose_template" ,
800800 service_id = service_id ,
801801 ),
802- "text" : "Back to all templates"
802+ "text" : "Back to all templates" ,
803803 },
804- "html" : "Back to all templates"
804+ "html" : "Back to all templates" ,
805805 }
806806 else :
807807 return {
@@ -811,14 +811,16 @@ def get_back_link(
811811 service_id = service_id ,
812812 template_id = template .id ,
813813 ),
814- "text" : "Back to confirm your template"
814+ "text" : "Back to confirm your template" ,
815815 },
816- "html" : "Back to confirm your template"
816+ "html" : "Back to confirm your template" ,
817817 }
818818
819819 # fallback for other steps
820820 back_to_text = (
821- "Back to select recipients" if step_index == 1 else "Back to message personalization"
821+ "Back to select recipients"
822+ if step_index == 1
823+ else "Back to message personalization"
822824 )
823825
824826 return {
@@ -829,9 +831,9 @@ def get_back_link(
829831 template_id = template .id ,
830832 step_index = step_index - 1 ,
831833 ),
832- "text" : back_to_text
834+ "text" : back_to_text ,
833835 },
834- "html" : back_to_text
836+ "html" : back_to_text ,
835837 }
836838
837839
0 commit comments