more prep work

This commit is contained in:
2026-07-31 19:26:23 -06:00
parent e5b08b0873
commit f4efb0f48a
2 changed files with 34 additions and 6 deletions
+13
View File
@@ -41,19 +41,26 @@ local get_random_order = function(array)
end
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
@@ -101,5 +108,11 @@ else
maximum_change = 2.5,
},
total_pages = 0,
defaults = {
launch = {
filter = "in_progress",
sort = "fewest_pages_remaining",
},
},
}
end