From 2f6ea8437a4d07c00bc2844a0dd38a76478fc53d Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 24 Sep 2021 04:52:49 +0200 Subject: [PATCH] fds --- files/routes/posts.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index 05e1ca846..dee04bbdb 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -1012,7 +1012,6 @@ def submit_post(v): if "rdrama" in request.host or (new_post.url and not "weebzone" in request.host and not "marsey.tech" in request.host): new_post.comment_count = 1 g.db.add(new_post) - g.db.flush() if "rdrama" in request.host: if v.id == 995: @@ -1031,8 +1030,6 @@ def submit_post(v): body_html = sanitize(body_md) - print("test") - c = Comment(author_id=261, distinguish_level=6, parent_submission=new_post.id, @@ -1047,8 +1044,6 @@ def submit_post(v): g.db.add(c) g.db.flush() - print("wtf") - n = Notification(comment_id=c.id, user_id=v.id) g.db.add(n)