add new 'safe' extention

pull/3/head
Eugen Ciur 2020-07-14 09:01:46 +02:00
parent 6759e35060
commit 6505b476bf
1 changed files with 8 additions and 1 deletions

View File

@ -6,7 +6,14 @@ import importlib.util
logger = logging.getLogger(__name__)
SAFE_EXTENSIONS = ['.txt', '.jpg', '.hocr', '.pdf']
SAFE_EXTENSIONS = [
'.txt',
'.jpg',
'.jpeg',
'.png',
'.hocr',
'.pdf',
]
def get_bool(key, default="NO"):