1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-12-25 01:20:32 +00:00

Fixed title sorting routine

This commit is contained in:
Ozzieisaacs 2020-05-21 19:37:54 +02:00
parent cc856c7cd1
commit 098dab889a

View File

@ -318,7 +318,7 @@ def update_title_sort(config, conn=None):
match = title_pat.search(title)
if match:
prep = match.group(1)
title = title.replace(prep, '') + ', ' + prep
title = title[len(prep):] + ', ' + prep
return title.strip()
conn = conn or session.connection().connection.connection