Update tour.py

Formatting
This commit is contained in:
Jonathan Bobel
2025-04-28 11:59:48 -04:00
parent 7410a00519
commit e04806b1eb
+15 -7
View File
@@ -141,19 +141,27 @@ def _get_tour_step_back_link(service_id, template_id, step_index):
if step_index == 1: if step_index == 1:
return { return {
"href": { "href": {
"url": url_for('main.begin_tour', service_id=service_id, template_id=template_id), "url": url_for('main.begin_tour',
service_id=service_id,
template_id=template_id
),
"text": "Back to tour start" "text": "Back to tour start"
}, },
"html": "Back to tour start" "html": "Back to tour start"
} }
else: else:
return { return {
"href": { "href": {
"url": url_for('main.tour_step', service_id=service_id, template_id=template_id, step_index=step_index-1), "url": url_for(
"text": "Back to previous step" "main.tour_step",
}, service_id=service_id,
"html": "Back to previous step" template_id=template_id,
} step_index=step_index - 1,
),
"text": "Back to previous step",
},
"html": "Back to previous step",
}
@main.route( @main.route(