def tasks_index(): return render_template("tasks/list.html", tasks=Task.query.filter_by(user_id=current_user.id), current_date=datetime.now(), count=Task.count_all_tasks(current_user.id))
def tasks_archived(): return render_template( "tasks/archived.html", tasks=Task.query.filter_by(user_id=current_user.id).filter( Task.archived == True), count=Task.count_all_tasks(current_user.id))
def tasks_index(): return render_template("tasks/list.html", tasks=Task.query.filter_by(user_id=current_user.id), completed=Task.list_all_completed_tasks( current_user.id), count=Task.count_all_tasks(current_user.id))