Skip to content

Instantly share code, notes, and snippets.

@sjl
Created January 24, 2011 02:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sjl/792696 to your computer and use it in GitHub Desktop.
Save sjl/792696 to your computer and use it in GitHub Desktop.
(defn db-personality-user
[uid]
(let [faved (brains.db/user-site-faved-count uid)
mehed (brains.db/user-mehed-count uid)
hated (brains.db/user-hated-count uid)]
(assoc (personality faved mehed hated)
:uid uid)))
(defn db-personality-users
[]
(map db-personality-user (brains.db/active-users)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment