From 77d8dd87375ed113924ff8e0b340a3a4b5c2fdce Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 15 Mar 2023 04:53:15 +0200 Subject: [PATCH] print debugging --- files/helpers/media.py | 1 + 1 file changed, 1 insertion(+) diff --git a/files/helpers/media.py b/files/helpers/media.py index 3b756c37d..105cf46f5 100644 --- a/files/helpers/media.py +++ b/files/helpers/media.py @@ -57,6 +57,7 @@ def process_files(files, v, body): name = f'/images/{time.time()}'.replace('.','') + '.webp' file.save(name) url = process_image(name, v) + print(f'{url} ', flush=True) body = body.replace(f'[{file.filename}]', f'{url} ', 1) elif file.content_type.startswith('video/'): body = body.replace(f'[{file.filename}]', process_video(file, v), 1)