From 1144d97bc15425d99f68be47979af912dd969956 Mon Sep 17 00:00:00 2001 From: bodybybuddha Date: Mon, 1 Oct 2018 15:34:16 -0400 Subject: [PATCH] Fixed updating new book format to be all caps in database This keeps us inline with calibre's behavior. --- cps/worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/worker.py b/cps/worker.py index 02ca742f..21914a3d 100644 --- a/cps/worker.py +++ b/cps/worker.py @@ -320,7 +320,7 @@ class WorkerThread(threading.Thread): cur_book = web.db.session.query(web.db.Books).filter(web.db.Books.id == bookid).first() if os.path.isfile(file_path + format_new_ext): new_format = web.db.Data(name=cur_book.data[0].name, - book_format=self.queue[self.current]['settings']['new_book_format'], + book_format=self.queue[self.current]['settings']['new_book_format'].upper(), book=bookid, uncompressed_size=os.path.getsize(file_path + format_new_ext)) cur_book.data.append(new_format) web.db.session.commit()