From 986341722fd551c17204b5959ecb8e8a6096839a Mon Sep 17 00:00:00 2001 From: winet Date: Sun, 11 Feb 2024 20:16:11 +1000 Subject: [PATCH] Show only authorized sessions --- app/blueprints/api/tasks/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/blueprints/api/tasks/routes.py b/app/blueprints/api/tasks/routes.py index 7ba6a79..e163b96 100644 --- a/app/blueprints/api/tasks/routes.py +++ b/app/blueprints/api/tasks/routes.py @@ -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)