From cc85cab01d35e7e4c4f8202e1059f4539bfec912 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 27 Sep 2022 02:48:03 +0200 Subject: [PATCH] make badges 300px instead --- files/routes/comments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index c9ee808ff..d47cbdd59 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -222,7 +222,7 @@ def comment(v): g.db.flush() filename = f'files/assets/images/badges/{badge.id}.webp' copyfile(oldname, filename) - process_image(filename, resize=400) + process_image(filename, resize=300) requests.post(f'https://api.cloudflare.com/client/v4/zones/{CF_ZONE}/purge_cache', headers=CF_HEADERS, data=f'{{"files": ["https://{SITE}/assets/images/badges/{badge.id}.webp"]}}', timeout=5) except Exception as e: