Show only authorized sessions
This commit is contained in:
parent
557d19ea0d
commit
986341722f
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue