mirror of
https://github.com/logos-co/open-law.git
synced 2025-01-28 23:54:58 +00:00
fix comments
This commit is contained in:
parent
aa8bd25b35
commit
3169b251c0
@ -1,5 +1,6 @@
|
|||||||
from flask import url_for
|
from flask import url_for
|
||||||
from flask_login import current_user
|
from flask_login import current_user
|
||||||
|
|
||||||
from app import models as m, db
|
from app import models as m, db
|
||||||
from app import schema as s
|
from app import schema as s
|
||||||
|
|
||||||
@ -52,7 +53,7 @@ def create_breadcrumbs(
|
|||||||
label=collection.label,
|
label=collection.label,
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
if section_id != 0 and collection_path:
|
if section_id and collection_path:
|
||||||
section: m.Section = db.session.get(m.Section, section_id)
|
section: m.Section = db.session.get(m.Section, section_id)
|
||||||
if len(collection_path) == 2:
|
if len(collection_path) == 2:
|
||||||
crumples += [
|
crumples += [
|
||||||
@ -80,7 +81,7 @@ def create_breadcrumbs(
|
|||||||
label=section.label,
|
label=section.label,
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
if interpretation_id != 0:
|
if interpretation_id:
|
||||||
interpretation: m.Interpretation = db.session.get(
|
interpretation: m.Interpretation = db.session.get(
|
||||||
m.Interpretation, interpretation_id
|
m.Interpretation, interpretation_id
|
||||||
)
|
)
|
||||||
|
@ -8,9 +8,8 @@ from flask import (
|
|||||||
)
|
)
|
||||||
from flask_login import login_required, current_user
|
from flask_login import login_required, current_user
|
||||||
|
|
||||||
from app.controllers import create_pagination
|
from app.controllers import create_pagination, create_breadcrumbs
|
||||||
from app import models as m, db, forms as f
|
from app import models as m, db, forms as f
|
||||||
from app.controllers.breadcrumbs import create_breadcrumbs
|
|
||||||
from app.logger import log
|
from app.logger import log
|
||||||
|
|
||||||
bp = Blueprint("book", __name__, url_prefix="/book")
|
bp = Blueprint("book", __name__, url_prefix="/book")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user