From dabd50f4e625f3c8a1606ca36e380648a01c49a8 Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Mon, 16 Sep 2019 12:24:40 +0100 Subject: Add database column for task assigned by admin This allows us to later manually assign tasks to users, which didn't work anymore after the task assignment rewrite. --- app/auth/routes.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/auth/routes.py') diff --git a/app/auth/routes.py b/app/auth/routes.py index 0556233..21b1a67 100644 --- a/app/auth/routes.py +++ b/app/auth/routes.py @@ -97,6 +97,8 @@ def login(): annotator_id=current_user.id, done=False ).all() for task in user_tasks: + if task.admin_assigned: + continue anns = Annotation.query.filter_by(task_id=task.id).all() if len(anns) > 0: flash( -- cgit v1.2.3