black
This commit is contained in:
@@ -136,9 +136,7 @@ class ResizeAnalyzer(SubprocessAnalyzer):
|
|||||||
saved_img_urls = []
|
saved_img_urls = []
|
||||||
|
|
||||||
# No match found
|
# No match found
|
||||||
if not (db_matches := self._lookup_crc()) and not (
|
if not (db_matches := self._lookup_crc()) and not (db_matches := self._search_height_crc()):
|
||||||
db_matches := self._search_height_crc()
|
|
||||||
):
|
|
||||||
return {
|
return {
|
||||||
"status": "error",
|
"status": "error",
|
||||||
"error": "Failure: No matching dimensions found.",
|
"error": "Failure: No matching dimensions found.",
|
||||||
@@ -160,7 +158,6 @@ class ResizeAnalyzer(SubprocessAnalyzer):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def analyze_image_resize(input_img: Path, output_dir: Path) -> None:
|
def analyze_image_resize(input_img: Path, output_dir: Path) -> None:
|
||||||
"""Analyze an image submission using ResizeAnalyzer."""
|
"""Analyze an image submission using ResizeAnalyzer."""
|
||||||
analyzer = ResizeAnalyzer(input_img, output_dir)
|
analyzer = ResizeAnalyzer(input_img, output_dir)
|
||||||
|
|||||||
Reference in New Issue
Block a user