From 6845b7153de093098f7aa7481c105b3455589585 Mon Sep 17 00:00:00 2001 From: cedricbonhomme Date: Sun, 11 Mar 2012 08:57:05 +0100 Subject: Renamed search function 'q' to 'search'. --- utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'utils.py') diff --git a/utils.py b/utils.py index e4841037..2c0dc0d8 100755 --- a/utils.py +++ b/utils.py @@ -190,15 +190,15 @@ def tag_cloud(tags, query="word_count"): tags.sort(key=operator.itemgetter(0)) if query == "word_count": # tags cloud from the management page - return ' '.join([('%s\n' % \ + return ' '.join([('%s\n' % \ (min(1 + count * 7 / max([tag[1] for tag in tags]), 7), word, count, word)) \ for (word, count) in tags]) if query == "year": # tags cloud for the history - return ' '.join([('%s\n' % \ + return ' '.join([('%s\n' % \ (min(1 + count * 7 / max([tag[1] for tag in tags]), 7), query, word, count, word)) \ for (word, count) in tags]) - return ' '.join([('%s\n' % \ + return ' '.join([('%s\n' % \ (min(1 + count * 7 / max([tag[1] for tag in tags]), 7), query, word, count, calendar.month_name[int(word)])) \ for (word, count) in tags]) -- cgit