From 4e57b31fa30fe7cd0bca356cd12b9b44e90121ba Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 14 Nov 2024 01:58:30 +0200 Subject: [PATCH] print-debugging --- files/routes/posts.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/files/routes/posts.py b/files/routes/posts.py index a6a4d0fc6..051ef4d29 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -674,6 +674,9 @@ def submit_post(v, hole=None): ) g.db.add(vote) + print(p.url, flush=True) + print(SITE_FULL_VIDEOS, flush=True) + if request.files.get('file-url') and not g.is_tor: file = request.files['file-url'] @@ -697,7 +700,9 @@ def submit_post(v, hole=None): stop(415) elif p.url and p.url.startswith(SITE_FULL_VIDEOS): filename = '/videos' + p.url.split(SITE_FULL_VIDEOS)[1] + print(filename, flush=True) media = g.db.get(Media, filename) + print(media, flush=True) if media: media_usage = MediaUsage( filename=filename,