Show only authorized sessions

This commit is contained in:
Анатолий Богомолов 2024-02-11 20:16:11 +10:00
parent 557d19ea0d
commit 986341722f
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ tasks = Blueprint("tasks", __name__, url_prefix="/tasks", template_folder="templ
@tasks.route("/", methods=["GET"])
def get_tasks():
tasks = Task.query.all()
sessions = Session.query.all()
sessions = Session.query.filter_by(authorized=True).all()
return render_template("tasks_cards.j2", tasks=tasks, sessions=sessions)