From 11aeef7483952830c9899ae303e4a4cbe6c67a0a Mon Sep 17 00:00:00 2001 From: NiLuJe Date: Sat, 17 Oct 2020 23:22:23 +0200 Subject: [PATCH] Don't shadow gettext (#6799) (Fixes the "current book" stats page) --- plugins/statistics.koplugin/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/statistics.koplugin/main.lua b/plugins/statistics.koplugin/main.lua index 48954d0de..475323cb8 100644 --- a/plugins/statistics.koplugin/main.lua +++ b/plugins/statistics.koplugin/main.lua @@ -1240,7 +1240,7 @@ function ReaderStatistics:getCurrentStat(id_book) -- NOTE: But, as the "Average time per page" entry is already re-using self.avg_time, -- which is computed slightly differently (c.f., insertDB), we'll be using this tweaked book read time -- to compute the other time-based statistics... - local _, book_read_time = self:getPageTimeTotalStats(id_book) + local __, book_read_time = self:getPageTimeTotalStats(id_book) if total_time_book == nil then total_time_book = 0