access to home page

This commit is contained in:
SvyatoslavArtymovych 2023-05-04 17:50:27 +03:00
parent bdaac0a428
commit d46d4b0e8a
1 changed files with 1 additions and 2 deletions

View File

@ -2,7 +2,7 @@ from flask import (
Blueprint,
render_template,
)
from flask_login import current_user, login_required
from flask_login import current_user
from app import models as m
@ -10,7 +10,6 @@ bp = Blueprint("home", __name__, url_prefix="/home")
@bp.route("/", methods=["GET"])
@login_required
def get_all():
books: m.Book = m.Book.query.order_by(m.Book.id).limit(5)
sections: m.Section = m.Section.query.order_by(m.Section.id).limit(5)