aboutsummaryrefslogtreecommitdiff
path: root/tagging/utils.py
diff options
context:
space:
mode:
authorJonas Genannt <genannt@debian.org>2015-11-15 22:25:54 +0100
committerJonas Genannt <genannt@debian.org>2015-11-15 22:25:54 +0100
commit24cd0a91184be6fa20168f9b132b1ab3f5911949 (patch)
tree9577a4d01ab2b613757875dab7b7d8b1acb64b48 /tagging/utils.py
parent0b15d7564b3ceca4faebfc93401daa99102c241c (diff)
downloadpython-django-tagging-24cd0a91184be6fa20168f9b132b1ab3f5911949.tar
python-django-tagging-24cd0a91184be6fa20168f9b132b1ab3f5911949.tar.gz
reset patches that are included by the git migration
Diffstat (limited to 'tagging/utils.py')
-rw-r--r--tagging/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tagging/utils.py b/tagging/utils.py
index 759e8d8..e89bab0 100644
--- a/tagging/utils.py
+++ b/tagging/utils.py
@@ -232,7 +232,7 @@ def _calculate_tag_weight(weight, max_weight, distribution):
if distribution == LINEAR or max_weight == 1:
return weight
elif distribution == LOGARITHMIC:
- return min((max_weight, math.log(weight) * max_weight / math.log(max_weight)))
+ return math.log(weight) * max_weight / math.log(max_weight)
raise ValueError(_('Invalid distribution algorithm specified: %s.') % distribution)
def calculate_cloud(tags, steps=4, distribution=LOGARITHMIC):