diff options
author | hardythe1 | 2015-08-05 15:34:35 +0530 |
---|---|---|
committer | hardythe1 | 2015-08-05 15:34:35 +0530 |
commit | e0122aacbe94daa94369a3b21122bfd7543cfef8 (patch) | |
tree | 054d2ab3bd91d43bfc37d9df698c6779c3334be7 | |
parent | e5c6c1b4c4d243eac483a808fbc33ad34c836c68 (diff) | |
download | Python-TBC-Interface-e0122aacbe94daa94369a3b21122bfd7543cfef8.tar.gz Python-TBC-Interface-e0122aacbe94daa94369a3b21122bfd7543cfef8.tar.bz2 Python-TBC-Interface-e0122aacbe94daa94369a3b21122bfd7543cfef8.zip |
fix minor path error for book approval
-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 7793921..5a8cb89 100755 --- a/tbc/views.py +++ b/tbc/views.py @@ -1075,7 +1075,7 @@ def ApproveBook(request, book_id=None): book = Book.objects.get(id=book_id) file_path = local.path book_title = book.title.replace(" ", "_") - book_title = book.title +'_by_'+book.author.replace(" ", "_") + book_title = book_title +'_by_'+book.author.replace(" ", "_") directory = file_path+book_title os.chdir(directory) fp = open(directory+"/README.txt", 'w') |