aboutsummaryrefslogtreecommitdiff
path: root/app/utils
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2019-06-06 11:27:35 +0100
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2019-06-06 11:27:35 +0100
commit14637464277177ac092469bc6a2cb906b22a15f6 (patch)
tree40c6cc01c146383db0c1b605fbab00e625ee3b99 /app/utils
parentupdate changelog and bump version (diff)
downloadAnnotateChange-14637464277177ac092469bc6a2cb906b22a15f6.tar.gz
AnnotateChange-14637464277177ac092469bc6a2cb906b22a15f6.zip
bugfix for sorting datasets
Diffstat (limited to 'app/utils')
-rw-r--r--app/utils/tasks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/utils/tasks.py b/app/utils/tasks.py
index 4297420..5629d46 100644
--- a/app/utils/tasks.py
+++ b/app/utils/tasks.py
@@ -52,7 +52,7 @@ def generate_user_task(user):
return None
# sort datasets so that the ones who need the least are at the front.
- potential_datasets.sort()
+ potential_datasets.sort(key=lambda x: x[0])
_, dataset = potential_datasets[0]
task = Task(annotator_id=user.id, dataset_id=dataset.id)