From 8caa93f9cdb2eb3f906b42904cdb8cd702d229ea Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 2 Aug 2023 00:51:05 +0300 Subject: [PATCH] use {patron} --- files/helpers/media.py | 4 ++-- files/templates/admin/admin_home.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/files/helpers/media.py b/files/helpers/media.py index 066c34b06..92e2cd793 100644 --- a/files/helpers/media.py +++ b/files/helpers/media.py @@ -138,7 +138,7 @@ def process_video(file, v): (size > MAX_VIDEO_SIZE_MB_PATRON * 1024 * 1024 or not v.patron and size > MAX_VIDEO_SIZE_MB * 1024 * 1024)): os.remove(old) - abort(413, f"Max video size is {MAX_VIDEO_SIZE_MB} MB ({MAX_VIDEO_SIZE_MB_PATRON} MB for paypigs)") + abort(413, f"Max video size is {MAX_VIDEO_SIZE_MB} MB ({MAX_VIDEO_SIZE_MB_PATRON} MB for {patron}s)") name_original = secure_filename(file.filename) extension = name_original.split('.')[-1].lower() @@ -183,7 +183,7 @@ def process_image(filename, v, resize=0, trim=False, uploader_id=None, db=None): if size > MAX_IMAGE_AUDIO_SIZE_MB_PATRON * 1024 * 1024 or not patron and size > MAX_IMAGE_AUDIO_SIZE_MB * 1024 * 1024: os.remove(filename) if has_request: - abort(413, f"Max image/audio size is {MAX_IMAGE_AUDIO_SIZE_MB} MB ({MAX_IMAGE_AUDIO_SIZE_MB_PATRON} MB for paypigs)") + abort(413, f"Max image/audio size is {MAX_IMAGE_AUDIO_SIZE_MB} MB ({MAX_IMAGE_AUDIO_SIZE_MB_PATRON} MB for {patron}s)") return None try: diff --git a/files/templates/admin/admin_home.html b/files/templates/admin/admin_home.html index 7471915af..071fa9a06 100644 --- a/files/templates/admin/admin_home.html +++ b/files/templates/admin/admin_home.html @@ -141,7 +141,7 @@ {% endif %} {% if v.admin_level >= PERMS['CLAIM_REWARDS_ALL_USERS'] %} - + {% endif %} {% endblock %}