mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-06-21 01:58:23 +02:00
Add forbidden trigrams, closes #17
This commit is contained in:
@ -224,11 +224,6 @@ else:
|
||||
}
|
||||
}
|
||||
|
||||
if os.getenv("TFJM_STAGE", "dev") == "prod": # pragma: no cover
|
||||
from .settings_prod import * # noqa: F401,F403
|
||||
else:
|
||||
from .settings_dev import * # noqa: F401,F403
|
||||
|
||||
# Custom phone number format
|
||||
PHONENUMBER_DB_FORMAT = 'NATIONAL'
|
||||
PHONENUMBER_DEFAULT_REGION = 'FR'
|
||||
@ -240,3 +235,25 @@ JQUERY_URL = False
|
||||
|
||||
# Custom parameters
|
||||
PROBLEM_COUNT = 8
|
||||
FORBIDDEN_TRIGRAMS = [
|
||||
"BIT",
|
||||
"CNO",
|
||||
"CRO",
|
||||
"CUL",
|
||||
"FTG",
|
||||
"FCK",
|
||||
"FUC",
|
||||
"FUK",
|
||||
"FYS",
|
||||
"HIV",
|
||||
"IST",
|
||||
"MST",
|
||||
"KKK",
|
||||
"KYS",
|
||||
"SEX",
|
||||
]
|
||||
|
||||
if os.getenv("TFJM_STAGE", "dev") == "prod": # pragma: no cover
|
||||
from .settings_prod import * # noqa: F401,F403
|
||||
else:
|
||||
from .settings_dev import * # noqa: F401,F403
|
||||
|
Reference in New Issue
Block a user