From 543cf55fb2a29a91513f978484790d2c49385ab6 Mon Sep 17 00:00:00 2001 From: eric Date: Thu, 27 Aug 2020 14:59:43 -0400 Subject: [PATCH] minor optimization --- CoverPages.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CoverPages.py b/CoverPages.py index 5fdc35f..7509249 100644 --- a/CoverPages.py +++ b/CoverPages.py @@ -39,11 +39,9 @@ class CoverPages(object): for row in rows: url = '/' + row.filename href = '/ebooks/%d' % row.pk - title = gg.xmlspecialchars (row.title) + title = gg.xmlspecialchars (row.title) # handles <,>,& #Shortening long titles for latest covers title = title.replace('"', '"') - title = title.replace('<', '<') - title = title.replace('>', '>') title = title.replace("'", ''') short_title = title title_len = len(title)