summaryrefslogtreecommitdiff
path: root/src/site.clj
diff options
context:
space:
mode:
Diffstat (limited to 'src/site.clj')
-rw-r--r--src/site.clj9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/site.clj b/src/site.clj
index a221fb4..a472dfe 100644
--- a/src/site.clj
+++ b/src/site.clj
@@ -329,11 +329,12 @@ ORDER BY cnt DESC;
(def *piece-map*
(zipmap
- [:pawn :knight :bishop :rook :queen :king]
- ["♟" "♞" "♝" "♜" "♛" "♚"]))
+ [:pawn :knight :bishop :rook :queen :king :skull]
+ ["♟" "♞" "♝" "♜" "♛" "♚" "☠"]))
(defn score-to-piece [score]
- (cond (= score 0) :pawn
+ (cond (= score -1) :skull
+ (= score 0) :pawn
(< score 50) :knight
(< score 150) :bishop
(< score 300) :rook
@@ -388,7 +389,7 @@ ORDER BY created_on DESC;
has-avatar (non-empty-string? (user-info :avatar))
offset (maybe-parse-int offset 0)
score (if (= (lower-case profile-nick) "scottbot")
- 9999
+ -1
(or ((poll *user-scores*) profile-nick) 0))
dump-offset (* offset *dumps-per-page*)
raw-dumps (logger tags/fetch-dumps-by-nick