Skip to content
Snippets Groups Projects
Commit 2acd56f5 authored by Samuel Junesjö's avatar Samuel Junesjö
Browse files

Fixed several minor bugs

parent 69d35044
No related branches found
No related tags found
No related merge requests found
...@@ -240,6 +240,7 @@ def postformatter(pagebunch): ...@@ -240,6 +240,7 @@ def postformatter(pagebunch):
trustedImagePaths = [] trustedImagePaths = []
if CheckedImagePath.rsplit("/", 1)[-1] in os.listdir("html/images"): if CheckedImagePath.rsplit("/", 1)[-1] in os.listdir("html/images"):
trustedImagePaths.append(CheckedImagePath) trustedImagePaths.append(CheckedImagePath)
ImageCount+=1
os.remove(f"html/{ImagePath}") os.remove(f"html/{ImagePath}")
print(f"{CheckedImagePath} exists, removing {ImagePath}") print(f"{CheckedImagePath} exists, removing {ImagePath}")
else: else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment