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/admin/routes.py | |
| 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/admin/routes.py')
| -rw-r--r-- | app/admin/routes.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/admin/routes.py b/app/admin/routes.py index 518b3fc..98eb2fc 100644 --- a/app/admin/routes.py +++ b/app/admin/routes.py @@ -78,6 +78,7 @@ def manage_tasks(): return redirect(url_for("admin.manage_tasks")) else: task = Task(annotator_id=user.id, dataset_id=dataset.id) + task.admin_assigned = True db.session.add(task) db.session.commit() flash("Task registered successfully.", "success") |
