diff --git a/plugins/kosync.koplugin/main.lua b/plugins/kosync.koplugin/main.lua index a1c6b9250..cd9318270 100644 --- a/plugins/kosync.koplugin/main.lua +++ b/plugins/kosync.koplugin/main.lua @@ -558,7 +558,7 @@ function KOSync:getProgress(manual) return end - body.percentage = roundPercent(body.percentage) + body.percentage = Math.roundPercent(body.percentage) local progress = self:getLastProgress() local percentage = self:getLastPercent() DEBUG("current progress", percentage) diff --git a/plugins/wallabag.koplugin/main.lua b/plugins/wallabag.koplugin/main.lua index 42f645b51..4bc53a83b 100644 --- a/plugins/wallabag.koplugin/main.lua +++ b/plugins/wallabag.koplugin/main.lua @@ -1042,8 +1042,7 @@ function Wallabag:getLastPercent() end end - -function Wallabag:onCloseDocument() +function Wallabag:onCloseDocument() if self.remove_finished_from_history then local document_full_path = self.ui.document.file if document_full_path and self.directory and self:getLastPercent() == 1 and self.directory == string.sub(document_full_path, 1, string.len(self.directory)) then