mirror of
https://github.com/hkalexling/Mango.git
synced 2026-03-20 00:00:48 -04:00
Improve performance for library and title pages
This commit is contained in:
@@ -53,7 +53,7 @@ class MainRouter < Router
|
||||
begin
|
||||
title = (@context.library.get_title env.params.url["title"]).not_nil!
|
||||
username = get_username env
|
||||
percentage = title.entries.map &.load_percentage username
|
||||
percentage = title.load_percentage_for_all_entries username
|
||||
title_percentage = title.titles.map &.load_percentage username
|
||||
layout "title"
|
||||
rescue e
|
||||
|
||||
Reference in New Issue
Block a user