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