summaryrefslogtreecommitdiff
path: root/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'app.py')
-rw-r--r--app.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/app.py b/app.py
index 9f8a38d..ce6b042 100644
--- a/app.py
+++ b/app.py
@@ -291,7 +291,8 @@ class DBProxy(object):
def score(self, jokeid):
users = self.c.execute("SELECT id FROM " + self.prefix +
- "_users WHERE role='user'").fetchall()
+ "_users WHERE role='user' " +
+ "OR role='super'").fetchall()
users = [u['id'] for u in users]
votewhere = "SELECT COUNT(*) FROM " + self.prefix + "_votes WHERE "
# TODO optimize queries