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