Stop help showing up when it shouldn’t

This commit is contained in:
Chris Hill-Scott
2016-05-26 09:43:55 +01:00
parent af7256d84f
commit 6e95abdc82
2 changed files with 2 additions and 2 deletions

View File

@@ -315,5 +315,5 @@ def start_job(service_id, upload_id):
)
return redirect(
url_for('main.view_job', job_id=upload_id, service_id=service_id, help=request.form.get('help'))
url_for('main.view_job', job_id=upload_id, service_id=service_id, help=request.args.get('help', '0'))
)

View File

@@ -122,7 +122,7 @@
{% else %}
<form method="post" enctype="multipart/form-data" action="{{url_for('main.start_job', service_id=current_service.id, upload_id=upload_id)}}" class='page-footer'>
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
<input type="hidden" name="help" value="{{ '3' if request.args['help'] else 0 }}" />
<input type="hidden" name="help" value="{{ '3' if request.args['help'] == '2' else 0 }}" />
<input type="submit" class="button" value="{{ send_button_text }}" />
<a href="{{ back_link }}" class="page-footer-back-link">Back</a>
</form>