This commit is contained in:
Fundor333
2025-01-24 00:52:48 +01:00
parent 3f14e8dccf
commit db90f26796
58 changed files with 3 additions and 3 deletions

18
sorting_characters.py Normal file
View File

@@ -0,0 +1,18 @@
import random
import os
import shutil
path_to_sort = "static/Characters"
path_to_origin = "static/Characters/origin"
onlyfiles = os.listdir(path_to_origin)
random.shuffle(onlyfiles)
i = 1
for e in onlyfiles:
num = str(i).rjust(3, "0")
original = f"{path_to_origin}/{e}"
target = f"{path_to_sort}/{num}.png"
shutil.copyfile(original, target)
print(f'"https://fundor333.com/Characters/{num}.png",')
i += 1