mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 02:34:39 +00:00
fix(recents): Fix get recent chapters query
This commit is contained in:
parent
ce94bd2ad6
commit
16a51f00c4
2 changed files with 4 additions and 4 deletions
|
@ -13,7 +13,7 @@ class RecentChapter(
|
||||||
|
|
||||||
return chapterRepository.getRecents(
|
return chapterRepository.getRecents(
|
||||||
filterScanlators,
|
filterScanlators,
|
||||||
"%${search.sqLite}%",
|
search.sqLite,
|
||||||
limit,
|
limit,
|
||||||
actualOffset,
|
actualOffset,
|
||||||
)
|
)
|
||||||
|
|
|
@ -55,7 +55,7 @@ ON C.manga_id = S.manga_id
|
||||||
AND ifnull(C.scanlator, 'N/A') = ifnull(S.name, '/<INVALID>/') -- I assume if it's N/A it shouldn't be filtered
|
AND ifnull(C.scanlator, 'N/A') = ifnull(S.name, '/<INVALID>/') -- I assume if it's N/A it shouldn't be filtered
|
||||||
WHERE M.favorite = 1
|
WHERE M.favorite = 1
|
||||||
AND C.date_fetch > M.date_added
|
AND C.date_fetch > M.date_added
|
||||||
AND lower(M.title) LIKE :search
|
AND lower(M.title) LIKE '%' || :search || '%'
|
||||||
AND (
|
AND (
|
||||||
:apply_filter = 0 OR S.name IS NULL
|
:apply_filter = 0 OR S.name IS NULL
|
||||||
)
|
)
|
||||||
|
@ -76,7 +76,7 @@ AND H.history_last_read > 0
|
||||||
LEFT JOIN scanlators_view AS S
|
LEFT JOIN scanlators_view AS S
|
||||||
ON C.manga_id = S.manga_id
|
ON C.manga_id = S.manga_id
|
||||||
AND ifnull(C.scanlator, 'N/A') = ifnull(S.name, '/<INVALID>/') -- I assume if it's N/A it shouldn't be filtered
|
AND ifnull(C.scanlator, 'N/A') = ifnull(S.name, '/<INVALID>/') -- I assume if it's N/A it shouldn't be filtered
|
||||||
WHERE lower(M.title) LIKE :search
|
WHERE lower(M.title) LIKE '%' || :search || '%'
|
||||||
AND (
|
AND (
|
||||||
:apply_filter = 0 OR S.name IS NULL
|
:apply_filter = 0 OR S.name IS NULL
|
||||||
)
|
)
|
||||||
|
@ -109,7 +109,7 @@ AND max_last_read.history_last_read > 0
|
||||||
LEFT JOIN scanlators_view AS S
|
LEFT JOIN scanlators_view AS S
|
||||||
ON C.manga_id = S.manga_id
|
ON C.manga_id = S.manga_id
|
||||||
AND ifnull(C.scanlator, 'N/A') = ifnull(S.name, '/<INVALID>/') -- I assume if it's N/A it shouldn't be filtered
|
AND ifnull(C.scanlator, 'N/A') = ifnull(S.name, '/<INVALID>/') -- I assume if it's N/A it shouldn't be filtered
|
||||||
WHERE lower(M.title) LIKE :search
|
WHERE lower(M.title) LIKE '%' || :search || '%'
|
||||||
AND (
|
AND (
|
||||||
:apply_filter = 0 OR S.name IS NULL
|
:apply_filter = 0 OR S.name IS NULL
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue