mirror of
https://github.com/hkalexling/Mango.git
synced 2026-01-24 00:03:14 -05:00
When a title has no entry as immediate child, always return 0 as the reading progress
This commit is contained in:
@@ -212,6 +212,7 @@ class Title
|
||||
page / entry_obj.pages
|
||||
end
|
||||
def load_percetage(username)
|
||||
return 0 if @entries.empty?
|
||||
read_pages = total_pages = 0
|
||||
@entries.each do |e|
|
||||
read_pages += load_progress username, e.title
|
||||
|
||||
Reference in New Issue
Block a user