From e60087e68546a8a9b483e09a78f4389fcc9ebc4e Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Tue, 20 Sep 2016 15:08:47 +0200 Subject: Few improvemnts for the tag cloud of the user's profile pages. --- src/web/lib/misc_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/web/lib') diff --git a/src/web/lib/misc_utils.py b/src/web/lib/misc_utils.py index 07cb6ed5..ea0b18ce 100755 --- a/src/web/lib/misc_utils.py +++ b/src/web/lib/misc_utils.py @@ -272,8 +272,8 @@ def tag_cloud(tags): Generates a tags cloud. """ tags.sort(key=operator.itemgetter(0)) - return '\n'.join([('%s' % \ - (min(1 + count * 7 / max([tag[1] for tag in tags]), 7), word, format(count, ',d'), word)) \ + return '\n'.join([('%s' % \ + (min(1 + count * 7 / max([tag[1] for tag in tags]), 7), word)) \ for (word, count) in tags]) if __name__ == "__main__": -- cgit