nxphi47 commited on
Commit
f5d291f
1 Parent(s): 5c590a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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")))