'commit'
This commit is contained in:
@@ -62,8 +62,12 @@ async def run_capture_sequence(d, base_dir: str, pages: int = 5):
|
||||
async def offline_validate(base_dir: str):
|
||||
img_files = []
|
||||
for name in os.listdir(base_dir):
|
||||
if name.lower().endswith(".jpg"):
|
||||
img_files.append(os.path.join(base_dir, name))
|
||||
lower = name.lower()
|
||||
if not lower.endswith(".jpg"):
|
||||
continue
|
||||
if "_flag" in lower or "_vl" in lower:
|
||||
continue
|
||||
img_files.append(os.path.join(base_dir, name))
|
||||
img_files.sort()
|
||||
|
||||
if not img_files:
|
||||
|
||||
Reference in New Issue
Block a user