mirror of
https://github.com/logos-co/open-law.git
synced 2025-02-10 13:57:17 +00:00
hot fix
This commit is contained in:
parent
3d93518b30
commit
dadb02338b
@ -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
|
||||
)
|
||||
)
|
||||
|
||||
|
@ -191,7 +191,7 @@
|
||||
</dt>
|
||||
</div>
|
||||
<div class="p-5 m-3">
|
||||
{% for child in comment.children %}
|
||||
{% for child in comment.children if not child.is_deleted %}
|
||||
<div class="p-5 mb-2 flex justify-between items-end bg-slate-100 dark:bg-slate-600 rounded-lg">
|
||||
<div class="ql-snow">
|
||||
<div class="inline-block mb-4 ql-editor-readonly !p-0">
|
||||
|
@ -32,12 +32,6 @@ def collection_view(book_id: int):
|
||||
)
|
||||
|
||||
|
||||
@bp.route("/<int:book_id>/<int:collection_id>/subcollections", methods=["GET"])
|
||||
def sub_collection_view(book_id: int, collection_id: int):
|
||||
# TODO REMOVE ME
|
||||
return {"REMOVE ME": "REMOVE ME"}
|
||||
|
||||
|
||||
@bp.route("/<int:book_id>/create_collection", methods=["POST"])
|
||||
@bp.route("/<int:book_id>/<int:collection_id>/create_sub_collection", methods=["POST"])
|
||||
@register_book_verify_route(bp.name)
|
||||
|
@ -74,16 +74,10 @@ def create_comment(
|
||||
return redirect(redirect_url)
|
||||
|
||||
|
||||
@bp.route(
|
||||
"/<int:book_id>/<int:interpretation_id>/comment_delete",
|
||||
methods=["POST"],
|
||||
)
|
||||
@bp.route("/<int:book_id>/<int:interpretation_id>/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
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user