aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2011-03-03 07:38:41 +0100
committercedricbonhomme <devnull@localhost>2011-03-03 07:38:41 +0100
commit943404386daad121dc5aee5a641e7bd3de615ad3 (patch)
tree56ab9ad8e4d5fdf3bb89a364d9e920ada1ba57b0
parentRemoved useless import. (diff)
downloadnewspipe-943404386daad121dc5aee5a641e7bd3de615ad3.tar.gz
newspipe-943404386daad121dc5aee5a641e7bd3de615ad3.tar.bz2
newspipe-943404386daad121dc5aee5a641e7bd3de615ad3.zip
Minor changes (HTML font-size).
-rwxr-xr-xutils.py6
-rwxr-xr-xvar/feed.lst1
2 files changed, 4 insertions, 3 deletions
diff --git a/utils.py b/utils.py
index 67849e0a..20429b17 100755
--- a/utils.py
+++ b/utils.py
@@ -170,15 +170,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="/q/?querystring=%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/?querystring=%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/?querystring=%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])
diff --git a/var/feed.lst b/var/feed.lst
index 24b74bf5..d40a8a0f 100755
--- a/var/feed.lst
+++ b/var/feed.lst
@@ -31,3 +31,4 @@ http://www.handcrafted-games.com/index.php?feed/atom
http://feeds.feedburner.com/quuxlabs
http://python-history.blogspot.com/feeds/posts/default
http://www.haypocalc.com/wordpress/feed
+http://www.crypto.com/blog/rss10.xml
bgstack15