tweak last commit

master
Aevann1 2022-09-19 01:36:48 +02:00
parent 0930f85c4b
commit db9622565f
1 changed files with 2 additions and 2 deletions

View File

@ -373,7 +373,7 @@ def update_marsey(v):
if not existing:
return error("A marsey with this name doesn't exist!")
for x in ('png','jpg','jpeg','webp','gif'):
for x in ('png','jpeg','webp','gif'):
if path.isfile(f'/asset_submissions/marseys/original/{name}.{x}'):
os.remove(f'/asset_submissions/marseys/original/{name}.{x}')
@ -435,7 +435,7 @@ def update_hat(v):
format = i.format.lower()
new_path = f'/asset_submissions/hats/original/{name}.{format}'
for x in ('png','jpg','jpeg','webp','gif'):
for x in ('png','jpeg','webp','gif'):
if path.isfile(f'/asset_submissions/hats/original/{name}.{x}'):
os.remove(f'/asset_submissions/hats/original/{name}.{x}')