aboutsummaryrefslogtreecommitdiff
path: root/utils.py
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2012-03-11 08:57:05 +0100
committercedricbonhomme <devnull@localhost>2012-03-11 08:57:05 +0100
commit6845b7153de093098f7aa7481c105b3455589585 (patch)
tree108353573cad4b115348ba7818568b57c80cdb9d /utils.py
parentThe search for an expression through the database is ready. (diff)
downloadnewspipe-6845b7153de093098f7aa7481c105b3455589585.tar.gz
newspipe-6845b7153de093098f7aa7481c105b3455589585.tar.bz2
newspipe-6845b7153de093098f7aa7481c105b3455589585.zip
Renamed search function 'q' to 'search'.
Diffstat (limited to 'utils.py')
-rwxr-xr-xutils.py6
1 files changed, 3 insertions, 3 deletions
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([('<font size=%d><a href="/q/?querystring=%s" title="Count: %s">%s</a></font>\n' % \
+ return ' '.join([('<font size=%d><a href="/search/?query=%s" title="Count: %s">%s</a></font>\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([('<font size=%d><a href="/history/?querystring=%s:%s" title="Count: %s">%s</a></font>\n' % \
+ return ' '.join([('<font size=%d><a href="/history/?query=%s:%s" title="Count: %s">%s</a></font>\n' % \
(min(1 + count * 7 / max([tag[1] for tag in tags]), 7), query, word, count, word)) \
for (word, count) in tags])
- return ' '.join([('<font size=%d><a href="/history/?querystring=%s:%s" title="Count: %s">%s</a></font>\n' % \
+ return ' '.join([('<font size=%d><a href="/history/?query=%s:%s" title="Count: %s">%s</a></font>\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])
bgstack15