From db9622565f9e7b32df6c90b4c492f2ba448da1a9 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 19 Sep 2022 01:36:48 +0200 Subject: [PATCH] tweak last commit --- files/routes/asset_submissions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/asset_submissions.py b/files/routes/asset_submissions.py index f63fd3fec..7fdd02b3a 100644 --- a/files/routes/asset_submissions.py +++ b/files/routes/asset_submissions.py @@ -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}')