mirror of https://github.com/papermerge/mglib
add new 'safe' extention
parent
6759e35060
commit
6505b476bf
|
@ -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"):
|
||||
|
|
Loading…
Reference in New Issue