post redirect: Remove unused imports

This commit is contained in:
Eragon 2023-09-05 22:23:06 +02:00
parent f02d70a7e5
commit 7c098b2209
Signed by: Eragon
GPG Key ID: 087126EBFC725006
1 changed files with 2 additions and 18 deletions

View File

@ -1,22 +1,7 @@
from app import app, db
from app.models.attachment import Attachment
from app import app
from app.models.comment import Comment
from app.models.forum import Forum
from app.models.post import Post
from app.models.program import Program
from app.models.thread import Thread
from app.models.topic import Topic
from app.models.user import Member
from app.utils.render import render
from app.utils.check_csrf import check_csrf
from app.utils.priv_required import priv_required
from app.forms.forum import CommentEditForm, AnonymousCommentEditForm, TopicEditForm
from app.forms.post import MovePost, SearchThread
from wtforms import BooleanField
from urllib.parse import urlparse
from flask import redirect, url_for, abort, request, flash
from flask_login import login_required, current_user
from sqlalchemy import text
from flask import redirect, url_for
@app.route('/post/<int:postid>', methods=['GET', 'POST'])
@ -27,7 +12,6 @@ def redirect_post(postid):
if owner.type == 'topic':
# Is a topic
print('topic')
comments = Comment.query.where(
Comment.thread_id == c.thread.id,
Comment.date_created <= c.date_created