Esempio n. 1
0
def handle_tasks_json():
    return json.dumps([task.to_json() for task in Task.query().fetch(100)])
Esempio n. 2
0
def handle_tasks_json():
    return json.dumps(
        [task.to_json() for task in Task.query().fetch(100)])
Esempio n. 3
0
def handle_tasks():
    tasks = Task.query().fetch(100)
    return render_template("tasks.html", tasks=tasks)
Esempio n. 4
0
def handle_tasks():
    tasks = Task.query().fetch(100)
    return render_template("tasks.html", tasks=tasks)