reorganizing

This commit is contained in:
2026-08-06 17:59:36 -06:00
parent 7e3b9f43d1
commit ae484aa134
3 changed files with 70 additions and 66 deletions
+36
View File
@@ -0,0 +1,36 @@
local filters = {
all_books = function(book)
if book.hidden then return false end
return true
end,
unread = function(book)
if book.hidden then return false end
if book.progress == 0 then
return true
end
return false
end,
read = function(book)
if book.hidden then return false end
if book.progress == 1 then
return true
end
return false
end,
in_progress = function(book)
if book.hidden then return false end
if book.progress > 0 and book.progress < 1 then
return true
end
return false
end,
exclude_series = function(book)
if book.hidden then return false end
if book.series and not (book.title or book.author) then
return false
end
return true
end,
}
return filters