From 6368a464f3a153e284b84136c6f304a6924e9b59 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Fri, 7 Oct 2016 11:17:06 +0200 Subject: removed the tag cloud for the public profile page: too slow --- src/web/templates/profile_public.html | 4 +--- src/web/views/user.py | 7 +++---- 2 files changed, 4 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/web/templates/profile_public.html b/src/web/templates/profile_public.html index 5bd002e0..bf080df0 100644 --- a/src/web/templates/profile_public.html +++ b/src/web/templates/profile_public.html @@ -32,9 +32,7 @@

{{ user.bio }}

{% endif %} -
-
{{ tag_cloud|safe }}
-
+

Feeds

diff --git a/src/web/views/user.py b/src/web/views/user.py index 9dca512c..fc94f205 100644 --- a/src/web/views/user.py +++ b/src/web/views/user.py @@ -29,17 +29,16 @@ def profile_public(nickname=None): if not user.is_public_profile: return redirect(url_for('home')) - word_size = 6 + """word_size = 6 filters = {} filters['retrieved_date__gt'] = datetime.now() - timedelta(weeks=10) articles = ArticleController(user.id).read(**filters).all() top_words = misc_utils.top_words(articles, n=50, size=int(word_size)) - tag_cloud = misc_utils.tag_cloud(top_words) + tag_cloud = misc_utils.tag_cloud(top_words)""" return render_template('profile_public.html', user=user, - feeds=user.feeds, - tag_cloud=tag_cloud) + feeds=user.feeds) @user_bp.route('/management', methods=['GET', 'POST']) -- cgit