Skip to content
Snippets Groups Projects
Commit 2e07e963 authored by sam's avatar sam
Browse files

Tried fixing non-existant bugs, added debug messages

parent 5ec4699f
No related branches found
No related tags found
No related merge requests found
...@@ -240,9 +240,9 @@ def postformatter(pagebunch): ...@@ -240,9 +240,9 @@ def postformatter(pagebunch):
CheckedImagePath = f"{ImagePath}.{ext}" CheckedImagePath = f"{ImagePath}.{ext}"
if CheckedImagePath.rsplit("/", 1)[-1] in os.listdir("html/images"): if CheckedImagePath.rsplit("/", 1)[-1] in os.listdir("html/images"):
os.remove(f"html/{ImagePath}") os.remove(f"html/{ImagePath}")
print("file exists") print(f"{CheckedImagePath} exists, removing html/{ImagePath}")
else: else:
os.rename(f"html/{ImagePath}", f"html/{CheckedImagePath}") os.rename(f"html/{ImagePath}", f"{CheckedImagePath}")
ImagePaths.append(CheckedImagePath) ImagePaths.append(CheckedImagePath)
ImageCount+=1 ImageCount+=1
print(CheckedImagePath) print(CheckedImagePath)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment