- make the page parameter in the reader view the same as the page number in books

This commit is contained in:
Alex Ling
2020-02-14 16:57:48 +00:00
parent 9114c0b488
commit c7bde94495
2 changed files with 13 additions and 15 deletions

View File

@@ -99,8 +99,7 @@ class Title
page / entry_obj.pages
end
def load_percetage(username)
read_pages = 0
total_pages = 0
read_pages = total_pages = 0
@entries.each do |e|
read_pages += load_progress username, e.title
total_pages += e.pages