Show sum of entries and titles count when displaying the number of entries

This commit is contained in:
Alex Ling
2020-03-15 02:08:20 +00:00
parent 5a500364fc
commit e65d701e0a
3 changed files with 7 additions and 3 deletions

View File

@@ -154,6 +154,10 @@ class Title
ary
end
def size
@entries.size + @title_ids.size
end
# When downloading from MangaDex, the zip/cbz file would not be valid
# before the download is completed. If we scan the zip file,
# Entry.new would throw, so we use this method to check before