search #145

Merged
Eragon merged 19 commits from search into dev 2023-09-05 22:50:27 +02:00
1 changed files with 2 additions and 18 deletions
Showing only changes of commit 88bc300649 - Show all commits

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