diff options
| author | Scott Ostler <scottbot9000@gmail.com> | 2010-08-23 20:06:39 -0400 |
|---|---|---|
| committer | Scott Ostler <scottbot9000@gmail.com> | 2010-08-23 20:06:39 -0400 |
| commit | 38283d6ac32a2b80aad41c04b0eba31913fcd509 (patch) | |
| tree | 294d00dab167ddb58ef893f9b1593fe59fb16acf /src | |
| parent | 83d2b4b643b780a7d7e1cfb191a0b604c99fd91a (diff) | |
Fix get-user-ranking cnt/count mixup
Diffstat (limited to 'src')
| -rw-r--r-- | src/site.clj | 4 |
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 |
