diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-09-16 12:23:21 +0100 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-09-16 12:23:21 +0100 |
| commit | 4c30c19428ac157e4bc2f51c1450d8a1de23f7b5 (patch) | |
| tree | 51c6db0da66df096ae3ef106286080ba105c4024 | |
| parent | Revise task assignment to randomly assign and allow extras (diff) | |
| download | AnnotateChange-4c30c19428ac157e4bc2f51c1450d8a1de23f7b5.tar.gz AnnotateChange-4c30c19428ac157e4bc2f51c1450d8a1de23f7b5.zip | |
Set default configs to our desired numbers
| -rw-r--r-- | config.py | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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 |
