Moved toke log to it's own DB collection w/ cached statistics. Tokebot statistics page-load time decreased by up to 20-30x
This commit is contained in:
parent
42ad17072f
commit
a1b602efdb
7 changed files with 281 additions and 189 deletions
|
|
@ -19,6 +19,11 @@ along with this program. If not, see <https://www.gnu.org/licenses/>. %>
|
|||
</span>
|
||||
<div class="profile-item nested-dynamic-container" id="profile-tokes">
|
||||
<% profile.tokes.forEach((count, toke) => { %>
|
||||
<p class="profile-item profile-toke" id='profile-tokes<%-toke%>'><%- toke == "Legacy Tokes" ? '<br>' : '!' %><%- toke %>: <%- count %></p>
|
||||
<% if(toke != "Legacy Tokes"){ %>
|
||||
<p class="profile-item profile-toke" id='profile-tokes<%-toke%>'>!<%- toke %>: <%- count %></p>
|
||||
<% } %>
|
||||
<% }); %>
|
||||
<% if(profile.tokes.get("Legacy Tokes") != null){ %>
|
||||
<p class="profile-item profile-toke" id='profile-tokes-legacy-tokes'><br>Legacy Tokes: <%- profile.tokes.get("Legacy Tokes") %></p>
|
||||
<% } %>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue