Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ DEBUG = bool(int(os.environ.get("DEBUG", "1")))
|
|
32 |
|
33 |
# List of languages to block
|
34 |
BLOCK_LANGS = str(os.environ.get("BLOCK_LANGS", ""))
|
35 |
-
BLOCK_LANGS = BLOCK_LANGS.strip().split(";") if len(BLOCK_LANGS.strip()) > 0 else []
|
36 |
|
37 |
# for lang block, wether to block in history too
|
38 |
LANG_BLOCK_HISTORY = bool(int(os.environ.get("LANG_BLOCK_HISTORY", "0")))
|
|
|
32 |
|
33 |
# List of languages to block
|
34 |
BLOCK_LANGS = str(os.environ.get("BLOCK_LANGS", ""))
|
35 |
+
BLOCK_LANGS = [x.strip() for x in BLOCK_LANGS.strip().split(";")] if len(BLOCK_LANGS.strip()) > 0 else []
|
36 |
|
37 |
# for lang block, wether to block in history too
|
38 |
LANG_BLOCK_HISTORY = bool(int(os.environ.get("LANG_BLOCK_HISTORY", "0")))
|