def get_task(task_id):
    mc = MetaController()
    task_report = mc.read_task(task_id)
    if task_report is not None:
        return change_date_to_str(task_report)
    else:
        return add_error({}, 8, "Task not found")
Exemple #2
0
def load_task(task_id):
    mc = MetaController()
    return mc.read_task(task_id)
Exemple #3
0
def load_task(task_id):
    mc = MetaController()
    return mc.read_task(task_id)