From 9ca88840eb30a7a51d4fd12a38582efeb1c88655 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=AA=8E?= Date: Sun, 5 Mar 2017 15:30:35 +0800 Subject: [PATCH] =?UTF-8?q?=E2=80=9C-=E2=80=9C=20is=20removed=20at=20helpe?= =?UTF-8?q?r=20,=20so=20use=20=E2=80=9C=5F=E2=80=9D=20instead?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cps/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/web.py b/cps/web.py index 5687d604..ff61c022 100755 --- a/cps/web.py +++ b/cps/web.py @@ -1275,7 +1275,7 @@ def get_download_link(book_id, format): helper.update_download(book_id, int(current_user.id)) file_name = book.title if len(book.authors) > 0: - file_name = book.authors[0].name + '-' + file_name + file_name = book.authors[0].name + '_' + file_name file_name = helper.get_valid_filename(file_name) response = make_response( send_from_directory(os.path.join(config.config_calibre_dir, book.path), data.name + "." + format))