1
0
Fork 0

fix(api): correct file extension validity check

This commit is contained in:
Sean Sube 2023-11-16 22:04:11 -06:00
parent eb3f1479f2
commit c8dd85e798
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ def check_ext(name: str, exts: List[str]) -> Tuple[bool, str]:
_name, ext = path.splitext(name)
ext = ext.strip(".")
return (name in exts, ext)
return (ext in exts, ext)
def source_format(model: Dict) -> Optional[str]: