aboutsummaryrefslogtreecommitdiff
path: root/config.py
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2019-06-03 15:19:28 +0100
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2019-06-03 15:19:28 +0100
commit94c3656bea0ff16b826f1adf34a3ada9084c7f8f (patch)
treeb9e64849ea5dd15ab94fb3b8f79a2080fa050d1e /config.py
parentInitial version of demo (diff)
downloadAnnotateChange-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.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/config.py b/config.py
index 5727c2b..7ca18ed 100644
--- a/config.py
+++ b/config.py
@@ -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 ""