mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-26 07:47:17 +00:00
fix: [UI feeder] fix logger
This commit is contained in:
parent
0daf5bad44
commit
ee828a04bc
2 changed files with 1 additions and 2 deletions
|
@ -259,4 +259,4 @@ TEXT_MAX_SIZE = 1000000
|
|||
FILE_MAX_SIZE = 1000000000
|
||||
# Managed file extenions for file submission, comma separated
|
||||
# TODO add zip, gz and tar.gz
|
||||
FILE_ALLOWED_EXTENSIONS = txt,sh,pdf
|
||||
FILE_ALLOWED_EXTENSIONS = txt,sh,pdf,html,json
|
||||
|
|
|
@ -78,7 +78,6 @@ def allowed_file(filename):
|
|||
else:
|
||||
file_ext = filename.rsplit('.', 1)[1].lower()
|
||||
logger.debug(file_ext)
|
||||
logger.debug(Flask_config.SUBMIT_PASTE_FILE_ALLOWED_EXTENSIONS)
|
||||
return file_ext in Flask_config.SUBMIT_PASTE_FILE_ALLOWED_EXTENSIONS
|
||||
|
||||
def clean_filename(filename, whitelist=valid_filename_chars, replace=' '):
|
||||
|
|
Loading…
Reference in a new issue