optimist/pessimist report

This commit is contained in:
Mike Bloy 2010-11-25 13:05:23 -06:00
parent acee8752a5
commit b425895107
1 changed files with 4 additions and 2 deletions

View File

@ -154,9 +154,11 @@ class Karma(Module):
query = 'SELECT key, value FROM karma_values ORDER BY value ASC LIMIT 5' query = 'SELECT key, value FROM karma_values ORDER BY value ASC LIMIT 5'
header = 'Bottom 5 karma recipients:' header = 'Bottom 5 karma recipients:'
elif (report == 'positive'): elif (report == 'positive'):
pass query = 'SELECT who, pos FROM karma_users ORDER BY pos DESC LIMIT 5'
header = 'Top 5 Optimists:'
elif (report == 'negative'): elif (report == 'negative'):
pass query = 'SELECT who, neg FROM karma_users ORDER BY neg DESC LIMIT 5'
header = 'Top 5 Pessimists"'
if (query != None): if (query != None):
conn = self.get_db() conn = self.get_db()