mirror of
https://github.com/janeczku/calibre-web
synced 2024-06-18 03:09:57 +00:00
removed some more unwanted refactoring
This commit is contained in:
parent
896e8fddc3
commit
518c56e569
|
@ -988,8 +988,8 @@ class CalibreDB:
|
||||||
|
|
||||||
if with_count:
|
if with_count:
|
||||||
if not languages:
|
if not languages:
|
||||||
languages = self.session.query(Languages, func.count('books_languages_link.book')) \
|
languages = self.session.query(Languages, func.count('books_languages_link.book'))\
|
||||||
.join(books_languages_link).join(Books) \
|
.join(books_languages_link).join(Books)\
|
||||||
.filter(self.common_filters(return_all_languages=return_all_languages)) \
|
.filter(self.common_filters(return_all_languages=return_all_languages)) \
|
||||||
.group_by(text('books_languages_link.lang_code')).all()
|
.group_by(text('books_languages_link.lang_code')).all()
|
||||||
tags = list()
|
tags = list()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user