aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2019-09-16 12:23:21 +0100
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2019-09-16 12:23:21 +0100
commit4c30c19428ac157e4bc2f51c1450d8a1de23f7b5 (patch)
tree51c6db0da66df096ae3ef106286080ba105c4024
parentRevise task assignment to randomly assign and allow extras (diff)
downloadAnnotateChange-4c30c19428ac157e4bc2f51c1450d8a1de23f7b5.tar.gz
AnnotateChange-4c30c19428ac157e4bc2f51c1450d8a1de23f7b5.zip
Set default configs to our desired numbers
-rw-r--r--config.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/config.py b/config.py
index a7dfe93..8ebcece 100644
--- a/config.py
+++ b/config.py
@@ -48,17 +48,15 @@ class Config(object):
TEMP_DIR = "tmp"
# task distribution settings
- 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)
+ TASKS_MAX_PER_USER = int(os.environ.get("TASKS_MAX_PER_USER") or 50)
+ TASKS_NUM_PER_DATASET = int(os.environ.get("TASKS_NUM_PER_DATASET") or 5)
# user emails allowed
USER_EMAIL_DOMAINS = os.environ.get("USER_EMAIL_DOMAINS") or ""
USER_EMAIL_DOMAINS = [
x.strip() for x in USER_EMAIL_DOMAINS.split(";") if x.strip()
]
- USER_EMAIL_DOMAINS = (
- None if not USER_EMAIL_DOMAINS else USER_EMAIL_DOMAINS
- )
+ USER_EMAIL_DOMAINS = None if not USER_EMAIL_DOMAINS else USER_EMAIL_DOMAINS
USER_EMAILS = os.environ.get("USER_EMAILS") or ""
USER_EMAILS = [x.strip() for x in USER_EMAILS.split(";") if x.strip()]
USER_EMAILS = None if not USER_EMAILS else USER_EMAILS