summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorScott Ostler <scottbot9000@gmail.com>2010-08-23 20:06:39 -0400
committerScott Ostler <scottbot9000@gmail.com>2010-08-23 20:06:39 -0400
commit38283d6ac32a2b80aad41c04b0eba31913fcd509 (patch)
tree294d00dab167ddb58ef893f9b1593fe59fb16acf /src
parent83d2b4b643b780a7d7e1cfb191a0b604c99fd91a (diff)
Fix get-user-ranking cnt/count mixup
Diffstat (limited to 'src')
-rw-r--r--src/site.clj4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/site.clj b/src/site.clj
index 67fab63..669e144 100644
--- a/src/site.clj
+++ b/src/site.clj
@@ -408,8 +408,8 @@ FROM users u
(if-let [ranking (:list (poll *user-scores*))]
(let [cnt (count ranking)]
(subvec ranking
- (min count (* offset num))
- (min count (* (inc offset) num))))))
+ (min cnt (* offset num))
+ (min cnt (* (inc offset) num))))))
;; Profile