summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhardythe12015-08-05 15:34:35 +0530
committerhardythe12015-08-05 15:34:35 +0530
commite0122aacbe94daa94369a3b21122bfd7543cfef8 (patch)
tree054d2ab3bd91d43bfc37d9df698c6779c3334be7
parente5c6c1b4c4d243eac483a808fbc33ad34c836c68 (diff)
downloadPython-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-xtbc/views.py2
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')