diff options
author | hardythe1 | 2015-04-07 16:28:55 +0530 |
---|---|---|
committer | hardythe1 | 2015-04-07 16:28:55 +0530 |
commit | 2f4915d0b2468da78fab2e31fe7ed7b8fcf7c000 (patch) | |
tree | 85ba7a5d2e5894e2c266e04a537816d5dabf2306 | |
parent | 405a2dddc2fe0a7d1b1c7e3165bee5aae6d49522 (diff) | |
download | Python-TBC-Interface-2f4915d0b2468da78fab2e31fe7ed7b8fcf7c000.tar.gz Python-TBC-Interface-2f4915d0b2468da78fab2e31fe7ed7b8fcf7c000.tar.bz2 Python-TBC-Interface-2f4915d0b2468da78fab2e31fe7ed7b8fcf7c000.zip |
changed path for zip generation
-rwxr-xr-x | tbc/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tbc/views.py b/tbc/views.py index bf272ea..9a451e4 100755 --- a/tbc/views.py +++ b/tbc/views.py @@ -942,7 +942,7 @@ def generateZip(book_id): book = Book.objects.get(id=book_id) files_to_zip = [] file_path = os.path.abspath(os.path.dirname(__file__)) - file_path = file_path+"/static/uploads/" + file_path = file_path+"/static/Python-Textbook-Companions/" notebooks = Chapters.objects.filter(book=book) for notebook in notebooks: files_to_zip.append(file_path+str(notebook.notebook)) |