Repository :
http://git.fedorahosted.org/cgit/copr.git
On branch : master
---------------------------------------------------------------
commit 0b900e1dbf5782c568f7dc88021db8ba57336d43
Author: Miroslav Such�� <msuchy(a)redhat.com>
Date: Wed Nov 18 10:41:59 2015 +0100
use the same variable as defined in route
---------------------------------------------------------------
.../coprs/views/tmp_ns/tmp_general.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/frontend/coprs_frontend/coprs/views/tmp_ns/tmp_general.py
b/frontend/coprs_frontend/coprs/views/tmp_ns/tmp_general.py
index 4571447..8feda21 100644
--- a/frontend/coprs_frontend/coprs/views/tmp_ns/tmp_general.py
+++ b/frontend/coprs_frontend/coprs/views/tmp_ns/tmp_general.py
@@ -3,7 +3,7 @@ import os
from coprs.views.tmp_ns import tmp_ns
from coprs import app
-(a)tmp_ns.route("/<directory>/<file>")
+(a)tmp_ns.route("/<directory>/<file_path>")
def give_srpm(directory, file_path):
path = os.path.join(app.config["SRPM_STORAGE_DIR"], directory)
return flask.send_from_directory(path, file_path)