diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/site.clj | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/site.clj b/src/site.clj index 77ea36b..a5b87d3 100644 --- a/src/site.clj +++ b/src/site.clj @@ -400,13 +400,6 @@ FROM users u and t.message_id = m.message_id and m.is_image = true" (.toLowerCase nick)])))) -(defn count-users-dumps-faved [nick] - (:count - (first - (do-select ["select count(distinct(m.message_id)) from users u, tags t, messages m - where t.message_id = m.message_id and t.tag = 'favorite' - and m.user_id = u.user_id and lower(u.nick) = ?" - (.toLowerCase nick)])))) (defn profile ([session profile-nick offset] (profile session profile-nick offset "profile")) ([session profile-nick offset template] @@ -420,7 +413,6 @@ FROM users u offset (maybe-parse-int offset 0) dump-cnt (count-dumps-posted profile-nick) fav-from-cnt (count-dumps-user-faved profile-nick) - fav-to-cnt (count-users-dumps-faved profile-nick) score (lookup-score profile-nick) dump-offset (* offset *dumps-per-page*) raw-dumps (logger tags/fetch-dumps-by-nick @@ -444,7 +436,6 @@ FROM users u (.setAttribute st "score_ent" (score-to-entity score)) (.setAttribute st "dump_cnt" dump-cnt) (.setAttribute st "dumps_user_faved_cnt" fav-from-cnt) - (.setAttribute st "users_dumps_faved_cnt" fav-to-cnt) (if (not= offset 0) (.setAttribute st "prev" (max (dec offset) 0))) (.setAttribute st "debug_log_items" (logger)) |
