diff --git a/app/controllers/book_verify.py b/app/controllers/book_verify.py index 00ed31e..5f0aa55 100644 --- a/app/controllers/book_verify.py +++ b/app/controllers/book_verify.py @@ -61,9 +61,7 @@ def book_validator() -> Response | None: flash("Subcollection not found", "danger") return redirect( url_for( - "book.sub_collection_view", - book_id=book_id, - collection_id=collection_id, + "book.collection_view", book_id=book_id, collection_id=collection_id ) ) diff --git a/app/templates/book/qa_view.html b/app/templates/book/qa_view.html index 9393137..1565951 100644 --- a/app/templates/book/qa_view.html +++ b/app/templates/book/qa_view.html @@ -191,7 +191,7 @@
- {% for child in comment.children %} + {% for child in comment.children if not child.is_deleted %}
diff --git a/app/views/book/collection.py b/app/views/book/collection.py index 0cbce44..e16e46b 100644 --- a/app/views/book/collection.py +++ b/app/views/book/collection.py @@ -32,12 +32,6 @@ def collection_view(book_id: int): ) -@bp.route("///subcollections", methods=["GET"]) -def sub_collection_view(book_id: int, collection_id: int): - # TODO REMOVE ME - return {"REMOVE ME": "REMOVE ME"} - - @bp.route("//create_collection", methods=["POST"]) @bp.route("///create_sub_collection", methods=["POST"]) @register_book_verify_route(bp.name) diff --git a/app/views/book/comment.py b/app/views/book/comment.py index 41ea4e0..53d2011 100644 --- a/app/views/book/comment.py +++ b/app/views/book/comment.py @@ -74,16 +74,10 @@ def create_comment( return redirect(redirect_url) -@bp.route( - "///comment_delete", - methods=["POST"], -) +@bp.route("///comment_delete", methods=["POST"]) @register_book_verify_route(bp.name) @login_required -def comment_delete( - book_id: int, - interpretation_id: int, -): +def comment_delete(book_id: int, interpretation_id: int): redirect_url = url_for( "book.qa_view", book_id=book_id, interpretation_id=interpretation_id )