post redirect: Remove unused imports
This commit is contained in:
parent
f3a185518a
commit
88bc300649
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue