Esempio n. 1
0
def new_task_box():
    db= model.connect_db()
    tasks_from_db= model.get_tasks(db, None) 
    users_from_db= model.call_users(db, None)
    return render_template("new_task.html", tasks= tasks_from_db, 
                            users= users_from_db)
Esempio n. 2
0
def list_tasks():
    user_id = session.get("user_id", None)
    tasks_from_db = model.get_tasks(g.db, None)
    users_from_db= model.call_users(g.db, None)
    return render_template("list_tasks.html", tasks=tasks_from_db, 
        users= users_from_db)