@ -45,7 +45,7 @@ def download():
return render_template('download.html', form=form)
@app.route('/download_file/<path:filename>')
@app.route('/download_file/<filename>')
def download_file(filename):
return send_from_directory(app.config['DATA_DIR'], filename,
as_attachment=True)