Update src/services/metadata_factory.py
corrected supported extensions list Co-authored-by: qodo-code-review[bot] <151058649+qodo-code-review[bot]@users.noreply.github.com>
This commit is contained in:
parent
0bbfe84fd1
commit
e5705f0bbb
|
|
@ -44,7 +44,7 @@ class MetadataFactory:
|
||||||
UnsupportedFormatError: If no handler is defined for the file type.
|
UnsupportedFormatError: If no handler is defined for the file type.
|
||||||
ValueError: If the path is not a valid file.
|
ValueError: If the path is not a valid file.
|
||||||
"""
|
"""
|
||||||
supported_extensions = ".jpg, .jpeg, .png .docx .xlsx .pptx"
|
supported_extensions = ".jpg, .jpeg, .png, .docx, .xlsx, .pptx"
|
||||||
ext = Path(filepath).suffix.lower()
|
ext = Path(filepath).suffix.lower()
|
||||||
if Path(filepath).is_file():
|
if Path(filepath).is_file():
|
||||||
if ext in [".jpg", ".jpeg", ".png"]:
|
if ext in [".jpg", ".jpeg", ".png"]:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue