diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-03-28 11:23:47 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-03-28 11:23:47 +0100 |
commit | 687d985298957c3689547268928313a104bf6f89 (patch) | |
tree | a9448c4fdb5daa6d8e4a7a9c8499fb49f2e7ae65 /pyaggr3g470r/utils.py | |
parent | Typo... (diff) | |
download | newspipe-687d985298957c3689547268928313a104bf6f89.tar.gz newspipe-687d985298957c3689547268928313a104bf6f89.tar.bz2 newspipe-687d985298957c3689547268928313a104bf6f89.zip |
Bugfix: unnecessary trailing slash.
Diffstat (limited to 'pyaggr3g470r/utils.py')
-rwxr-xr-x | pyaggr3g470r/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyaggr3g470r/utils.py b/pyaggr3g470r/utils.py index e88f5261..a7f8ad64 100755 --- a/pyaggr3g470r/utils.py +++ b/pyaggr3g470r/utils.py @@ -299,7 +299,7 @@ def tag_cloud(tags): Generates a tags cloud. """ tags.sort(key=operator.itemgetter(0)) - return '\n'.join([('<font size=%d><a href="/search/?query=%s" title="Count: %s">%s</a></font>' % \ + return '\n'.join([('<font size=%d><a href="/search?query=%s" title="Count: %s">%s</a></font>' % \ (min(1 + count * 7 / max([tag[1] for tag in tags]), 7), word, format(count, ',d'), word)) \ for (word, count) in tags]) |