remove print-debugging

master
Aevann 2024-11-14 02:04:57 +02:00
parent 3c91523925
commit e8a26d2c96
1 changed files with 0 additions and 5 deletions

View File

@ -671,9 +671,6 @@ 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,9 +694,7 @@ 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,