diff options
-rw-r--r-- | tbc/templates/tbc/browse-books.html | 2 | ||||
-rw-r--r-- | tbc/views.py | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/tbc/templates/tbc/browse-books.html b/tbc/templates/tbc/browse-books.html index 0c6924d..8380982 100644 --- a/tbc/templates/tbc/browse-books.html +++ b/tbc/templates/tbc/browse-books.html @@ -18,7 +18,7 @@ function submitCategory() <option value="computer science">Computer Science</option> <option value="chemical engg">Chemical Engg</option> <option value="aerospace engg">Aerospace Engg</option> - <option value="electrical engg">Electrical Engg</option> + <option value="electrical engg">Electronics Engg</option> <option value="thermodynamics">Thermodynamics</option> <option value="mechanical engg">Mechanical Engg</option> <option value="mathematics">Mathematics</option> diff --git a/tbc/views.py b/tbc/views.py index 696b1e8..2a5b950 100644 --- a/tbc/views.py +++ b/tbc/views.py @@ -254,7 +254,8 @@ def ApproveBook(request, book_id=None): file_path = os.path.abspath(os.path.dirname(__file__)) zip_path = "/".join(file_path.split("/")[1:-2]) zip_path = "/"+zip_path+"/Python-Textbook-Companions/" - file_path = file_path+"/uploads/" + file_path = file_path+"/static/uploads/" + return HttpResponse(file_path) directory = file_path+book.contributor.user.first_name os.chmod(directory, 0777) os.chdir(directory) |