diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-06-03 15:19:28 +0100 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-06-03 15:19:28 +0100 |
| commit | 94c3656bea0ff16b826f1adf34a3ada9084c7f8f (patch) | |
| tree | b9e64849ea5dd15ab94fb3b8f79a2080fa050d1e /config.py | |
| parent | Initial version of demo (diff) | |
| download | AnnotateChange-94c3656bea0ff16b826f1adf34a3ada9084c7f8f.tar.gz AnnotateChange-94c3656bea0ff16b826f1adf34a3ada9084c7f8f.zip | |
Rewrite the task assignment flow
With the demo in place, we're rewriting the
task assignment flow such that users only
get a task assigned when:
1. They finish the demo
2. They finish a task
3. They login again.
This way we can better balance the datasets
and we won't have datasets that don't get
enough annotations because some users didn't
finish tasks they were assigned.
Diffstat (limited to 'config.py')
| -rw-r--r-- | config.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -48,8 +48,8 @@ class Config(object): TEMP_DIR = "tmp" # task distribution settings - TASKS_MAX_PER_USER = 5 - TASKS_NUM_PER_DATASET = 10 + TASKS_MAX_PER_USER =int(os.environ.get("TASKS_MAX_PER_USER")) or 5 + TASKS_NUM_PER_DATASET = int(os.environ.get("TASKS_NUM_PER_DATASET")) or 10 # user emails allowed USER_EMAIL_DOMAINS = os.environ.get("USER_EMAIL_DOMAINS") or "" |
