commit | 93da8a1b0e3fa71c1de443e84a1f5248b2e93faa | [log] [tgz] |
---|---|---|
author | Rushabh Mehta <rmehta@gmail.com> | Thu Mar 14 15:32:49 2013 +0530 |
committer | Rushabh Mehta <rmehta@gmail.com> | Thu Mar 14 15:32:49 2013 +0530 |
tree | 80e5639d2dae50d66181fff2aba6c163edb11475 | |
parent | 1aab4eaf8d8c1a4c641acfbe1b4a00d2fa6938d2 [diff] |
website module: minor updates
diff --git a/website/utils.py b/website/utils.py index 39e30ba..94d648b 100644 --- a/website/utils.py +++ b/website/utils.py
@@ -327,7 +327,7 @@ r, g, b = color[0:2], color[2:4], color[4:6] # switch dark and light shades - if float(int(r, 16) + int(g, 16) + int(b, 16)) / 3 < 8: + if (float(int(r, 16) + int(g, 16) + int(b, 16)) / 3) > 128: percent = -percent return p(r) + p(g) + p(b)