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