Don't shadow gettext (#6799)

(Fixes the "current book" stats page)
reviewable/pr6800/r1
NiLuJe 4 years ago committed by GitHub
parent 893909146d
commit 11aeef7483
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save