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:
@@ -412,6 +412,7 @@ local launch = function(file_name)
|
|||||||
-- TODO verify data structure
|
-- TODO verify data structure
|
||||||
if not data.books_with_page_count then
|
if not data.books_with_page_count then
|
||||||
recalculate_total_pages(data)
|
recalculate_total_pages(data)
|
||||||
|
save_json(data)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
data = {
|
data = {
|
||||||
|
|||||||
Reference in New Issue
Block a user