summaryrefslogtreecommitdiff
path: root/routes/analyse.py
diff options
context:
space:
mode:
authorJesse Antti Matikainen <jmatikai@local>2023-12-03 14:48:30 +0200
committerJesse Antti Matikainen <jmatikai@local>2023-12-03 14:48:30 +0200
commit477410a6c033a0cbd8b07fae123a1e9386488ba6 (patch)
tree46aa681a09bcff93d1d04566163af7bd2bb8a7a7 /routes/analyse.py
parentb538d8236cd9cf92c36df47ddf244096896f5068 (diff)
Implementing user combination gathering in SQL.
Diffstat (limited to 'routes/analyse.py')
-rw-r--r--routes/analyse.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/routes/analyse.py b/routes/analyse.py
index 279b02e..f982f2e 100644
--- a/routes/analyse.py
+++ b/routes/analyse.py
@@ -5,8 +5,7 @@ from routes.tools import rows2dicts, get_alert, get_nick, csrf_check
def find_best_and_worst(aid, uid):
match = {}
- users = [ x[0] for x in D.quiz.users(aid) ]
- comb = list(combinations(users,2))
+ comb = D.analyse.combinations(aid)
if len(comb)<1:
comb=[(uid,uid)]
min, minme, max, maxme = 101, 101, -1, -1