From 249f846b883656878b9b98cf0642f103aab7fc04 Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Fri, 13 Sep 2019 15:27:46 +0100 Subject: Minor comments --- app/utils/tasks.py | 1 + 1 file changed, 1 insertion(+) (limited to 'app/utils') diff --git a/app/utils/tasks.py b/app/utils/tasks.py index 1d7eec8..61155de 100644 --- a/app/utils/tasks.py +++ b/app/utils/tasks.py @@ -55,6 +55,7 @@ def generate_user_task(user): continue potential_datasets.append((n_needed, dataset)) + # don't assign a dataset if there are no more datasets to annotate if len(potential_datasets) == 0: return None -- cgit v1.2.3