added comment

This commit is contained in:
Kabooshki 2024-09-17 13:14:31 -05:00
parent 9aaeb28ffc
commit 81f331b77e
Signed by: Kabooshki
GPG Key ID: 5E7B7F2F405CD62A
1 changed files with 1 additions and 0 deletions

View File

@ -25,6 +25,7 @@ for filename in os.listdir(directory):
cv2.waitKey(1)
manpage = input("please input the number on the page (if the title is correct, enter nothing)")
print(manpage)
#check if the new name already exists
if manpage == "\n":
rng = numpy.random.default_rng().random()
os.rename (f'images/{data}.jpg', f'images/{data}.review-{rng}.jpg')