@log_call
def task_get_all(context, filters=None, marker=None, limit=None, sort_key='created_at', sort_dir='desc'):
 _task_soft_delete(context)
 filters = (filters or {})
 tasks = DATA['tasks'].values()
 tasks = _filter_tasks(tasks, filters, context)
 tasks = _sort_tasks(tasks, sort_key, sort_dir)
 tasks = _paginate_tasks(context, tasks, marker, limit, filters.get('deleted'))
 filtered_tasks = []
 for task in tasks:
  filtered_tasks.append(_format_task_from_db(task, task_info_ref=None))
 return filtered_tasks

@ log_call def task_get_all ( context , filters = None , marker = None , limit = None , sort_key = 'created_at' , sort_dir = 'desc' ) : _task_soft_delete ( context ) filters = ( filters or { } ) tasks = DATA [ 'tasks' ] . values ( ) tasks = _filter_tasks ( tasks , filters , context ) tasks = _sort_tasks ( tasks , sort_key , sort_dir ) tasks = _paginate_tasks ( context , tasks , marker , limit , filters . get ( 'deleted' ) ) filtered_tasks = [ ] for task in tasks : filtered_tasks . append ( _format_task_from_db ( task , task_info_ref = None ) ) return filtered_tasks
get all tasks that match zero or more filters .