From 95431120717fb2b59c04b4d9dd62cf1442f7f1ab Mon Sep 17 00:00:00 2001 From: fireworks88 Date: Tue, 7 Sep 2021 00:29:35 +0200 Subject: [PATCH] fd --- files/routes/posts.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index e0b2702307..bb8c17363e 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -535,13 +535,10 @@ IMGUR_KEY = environ.get("IMGUR_KEY", "").strip() def check_processing_thread(v, post, link, db): - print("thread") - image_id = link.split('/')[-1].rstrip('.mp4') headers = {"Authorization": f"Client-ID {IMGUR_KEY}"} while True: - print("sex") # break on error to prevent zombie threads try: time.sleep(15) @@ -902,7 +899,6 @@ def submit_post(v): post_url = upload_video(file) new_post.url = post_url new_post.processing = True - print("starting new thread") gevent.spawn(check_processing_thread, v.id, new_post, post_url, g.db) except UploadException as e: if request.headers.get("Authorization"): @@ -925,7 +921,6 @@ def submit_post(v): post_url = upload_video(file) new_post.url = post_url new_post.processing = True - print("starting new thread") gevent.spawn(check_processing_thread, v.id, new_post, post_url, g.db) except UploadException as e: if request.headers.get("Authorization"):