<|file_name|>frontend-results.py<|end_file_name|><｜fim▁begin｜>@app.route('/job/<name>')
def results(name):
    job = saliweb.frontend.get_completed_job(name,
                                             flask.request.args.get('passwd'))
    # Determine whether the job completed successfully<｜fim▁hole｜>        template = 'results_ok.html'
    else:
        template = 'results_failed.html'
    return saliweb.frontend.render_results_template(template, job=job)<｜fim▁end｜>
    if os.path.exists(job.get_path('output.pdb')):