Skip to content

Commit

Permalink
Merge pull request #56 from liangliangyy/dev
Browse files Browse the repository at this point in the history
Fix #55
  • Loading branch information
liangliangyy committed Dec 9, 2017
2 parents a58e5fb + 10f2c66 commit 75525b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blog/templatetags/blog_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def load_sidebar(user):
if tags and len(tags) > 0:
s = list(map(lambda t: (t, t.get_article_count()), tags))
count = sum(map(lambda t: t[1], s))
dd = count / len(tags)
dd = 1 if count == 0 else count / len(tags)
sidebar_tags = list(map(lambda x: (x[0], x[1], (x[1] / dd) * increment + 10), s))

return {
Expand Down

0 comments on commit 75525b1

Please sign in to comment.