diff --git a/modules/Karma.py b/modules/Karma.py index 07a85c7..1954c78 100644 --- a/modules/Karma.py +++ b/modules/Karma.py @@ -160,6 +160,9 @@ class Karma(Module): elif (report == 'negative'): query = 'SELECT who, neg FROM karma_users ORDER BY neg DESC LIMIT 5' header = 'Top 5 Pessimists:' + elif (report == 'top'): + query = 'SELECT who, pos+neg AS total FROM karma_users ORDER BY total DESC LIMIT 5' + header = 'Top 5 Total Karma Givers:' if (query != None): conn = self.get_db()