aboutsummaryrefslogtreecommitdiff
path: root/app/auth/routes.py
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2019-09-16 12:24:40 +0100
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2019-09-16 12:24:40 +0100
commitdabd50f4e625f3c8a1606ca36e380648a01c49a8 (patch)
tree2b5787b27afaa54dc54a9b208876bc9b9bccf896 /app/auth/routes.py
parentSet default configs to our desired numbers (diff)
downloadAnnotateChange-dabd50f4e625f3c8a1606ca36e380648a01c49a8.tar.gz
AnnotateChange-dabd50f4e625f3c8a1606ca36e380648a01c49a8.zip
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.
Diffstat (limited to 'app/auth/routes.py')
-rw-r--r--app/auth/routes.py2
1 files changed, 2 insertions, 0 deletions
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(