launch() needs to save when it corrects the data structure so it doesn't have to do it every time

This commit is contained in:
2026-08-06 16:43:49 -06:00
parent 9c2d209de3
commit 7e3b9f43d1
+1
View File
@@ -412,6 +412,7 @@ local launch = function(file_name)
-- TODO verify data structure
if not data.books_with_page_count then
recalculate_total_pages(data)
save_json(data)
end
else
data = {