Skip to content

Commit

Permalink
fixed bug through typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Barakudum committed Feb 4, 2024
1 parent dd936b0 commit 1bfc28e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jarklin/cache/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ def is_video_file(fp: PathSource) -> bool:
def is_gallery(fp: PathSource, boundary: int = 5) -> bool:
fp = Path(fp)
return fp.is_dir() and len([
f for f in fp.iterdir()
if any_number.search(fp.stem) is not None and is_image_file(f)
fn for fn in fp.iterdir()
if any_number.search(fn.stem) is not None and is_image_file(fn)
]) > boundary


Expand Down

0 comments on commit 1bfc28e

Please sign in to comment.