From 036852b5722da3ac03673b613dea02b7b2100346 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sat, 9 Mar 2024 13:51:51 +0200 Subject: [PATCH] != instead of > --- files/routes/asset_submissions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/asset_submissions.py b/files/routes/asset_submissions.py index c7facaf40..260c07ad2 100644 --- a/files/routes/asset_submissions.py +++ b/files/routes/asset_submissions.py @@ -383,7 +383,7 @@ def submit_hat(v): process_image(highquality, v) #to ensure not malware with Image.open(highquality) as i: - if i.width > 100 or i.height > 130: + if i.width != 100 or i.height != 130: os.remove(highquality) abort(400, "Images must be 100x130")