diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-09-16 12:24:40 +0100 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-09-16 12:24:40 +0100 |
| commit | dabd50f4e625f3c8a1606ca36e380648a01c49a8 (patch) | |
| tree | 2b5787b27afaa54dc54a9b208876bc9b9bccf896 /app/auth | |
| parent | Set default configs to our desired numbers (diff) | |
| download | AnnotateChange-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')
| -rw-r--r-- | app/auth/routes.py | 2 |
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( |
