Compare commits
No commits in common. "10091ef6d863831bda13221c3efa1ab079a3af12" and "b02ede51820d9293cc6152f2a821f4687ff5ecb8" have entirely different histories.
10091ef6d8
...
b02ede5182
1 changed files with 2 additions and 2 deletions
|
@ -30,7 +30,7 @@ fn get_epubs_from_database(tx: &Transaction) -> Vec<BookEntry> {
|
|||
r#"
|
||||
SELECT books.id, folders.name, files.filename, books.firstauthor,
|
||||
books.author, genres.name, first_author_letter, series
|
||||
FROM books_impl books JOIN files, storages
|
||||
FROM books_impl books JOIN files
|
||||
ON books.id = files.book_id
|
||||
JOIN folders
|
||||
ON folders.id = files.folder_id
|
||||
|
@ -38,7 +38,7 @@ fn get_epubs_from_database(tx: &Transaction) -> Vec<BookEntry> {
|
|||
ON books.id = btg.bookid
|
||||
LEFT OUTER JOIN genres
|
||||
ON genres.id = btg.genreid
|
||||
WHERE files.storageid IN (SELECT storages.id WHERE storages.type = 1) AND {}.ext = 'epub'
|
||||
WHERE files.storageid = 1 AND {}.ext = 'epub'
|
||||
ORDER BY books.id"#,
|
||||
&books_or_files
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue