aboutsummaryrefslogtreecommitdiffstats
path: root/captcha_scraper
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2026-05-27 19:56:52 -0700
committerPinapelz <yukais@pinapelz.com>2026-05-27 19:56:52 -0700
commit1da02013c535c85b39417ba5f17f23a8b4ad6782 (patch)
tree066bf493d324e9b2a955198302a1959fae724ff9 /captcha_scraper
parentc532fd283eebe257d45639473ca7c8a830eb1c08 (diff)
fix captcha_scraper file naming convention
Diffstat (limited to 'captcha_scraper')
-rw-r--r--captcha_scraper/scrape_data.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/captcha_scraper/scrape_data.py b/captcha_scraper/scrape_data.py
index 1e73d55..3a31295 100644
--- a/captcha_scraper/scrape_data.py
+++ b/captcha_scraper/scrape_data.py
@@ -94,12 +94,12 @@ def renumber_images_recursive(root_folder: str | Path) -> None:
temp_files = []
for i, image in enumerate(images):
- temp = directory / f"__tmp_{i}{image.suffix.lower()}"
+ temp = directory / f"__tmp_{i+1}{image.suffix.lower()}"
image.rename(temp)
temp_files.append(temp)
for i, temp in enumerate(temp_files):
- temp.rename(directory / f"{i}{temp.suffix.lower()}")
+ temp.rename(directory / f"{i+1}{temp.suffix.lower()}")
print(f"Renumbered {len(images)} images in {directory}")
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage