1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-11-15 22:34:56 +00:00

removed some more unwanted refactoring

This commit is contained in:
quarz12 2024-04-13 16:35:15 +02:00
parent 896e8fddc3
commit 518c56e569

View File

@ -988,8 +988,8 @@ class CalibreDB:
if with_count:
if not languages:
languages = self.session.query(Languages, func.count('books_languages_link.book')) \
.join(books_languages_link).join(Books) \
languages = self.session.query(Languages, func.count('books_languages_link.book'))\
.join(books_languages_link).join(Books)\
.filter(self.common_filters(return_all_languages=return_all_languages)) \
.group_by(text('books_languages_link.lang_code')).all()
tags = list()