From 7ce83c36b993ce2c877254e2ff72b2a357f7eec3 Mon Sep 17 00:00:00 2001 From: Son Nguyen Kim Date: Tue, 13 Jul 2021 14:52:02 +0200 Subject: [PATCH] disable global stats to help the DB --- app/dashboard/templates/dashboard/index.html | 70 ++++++++++---------- app/dashboard/views/index.py | 4 +- 2 files changed, 37 insertions(+), 37 deletions(-) diff --git a/app/dashboard/templates/dashboard/index.html b/app/dashboard/templates/dashboard/index.html index b1dcb993..8a167b38 100644 --- a/app/dashboard/templates/dashboard/index.html +++ b/app/dashboard/templates/dashboard/index.html @@ -25,41 +25,41 @@ {% block default_content %} -
-
-
-
-
{{ stats.nb_alias }}
-
Aliases
-
-
-
-
-
-
-
{{ stats.nb_forward }}
-
Forwards
-
-
-
-
-
-
-
{{ stats.nb_reply }}
-
Replies
-
-
-
-
-
-
-
{{ stats.nb_block }}
-
Blocks
-
-
-
- -
+{#
#} +{#
#} +{#
#} +{#
#} +{#
{{ stats.nb_alias }}
#} +{#
Aliases
#} +{#
#} +{#
#} +{#
#} +{#
#} +{#
#} +{#
#} +{#
{{ stats.nb_forward }}
#} +{#
Forwards
#} +{#
#} +{#
#} +{#
#} +{#
#} +{#
#} +{#
#} +{#
{{ stats.nb_reply }}
#} +{#
Replies
#} +{#
#} +{#
#} +{#
#} +{#
#} +{#
#} +{#
#} +{#
{{ stats.nb_block }}
#} +{#
Blocks
#} +{#
#} +{#
#} +{#
#} +{##} +{#
#} diff --git a/app/dashboard/views/index.py b/app/dashboard/views/index.py index df538948..68c9ac78 100644 --- a/app/dashboard/views/index.py +++ b/app/dashboard/views/index.py @@ -148,7 +148,7 @@ def index(): current_user.intro_shown = True db.session.commit() - stats = get_stats(current_user) + # stats = get_stats(current_user) alias_infos = get_alias_infos_with_pagination_v3( current_user, page, query, sort, alias_filter @@ -167,5 +167,5 @@ def index(): last_page=last_page, sort=sort, filter=alias_filter, - stats=stats, + # stats=stats, )