'Insert missing entries from backlog.'

@with_session
def get_injections(self, task, session=None):

    entries = []
    for backlog_entry in get_entries(task=task.name, session=session):
        entry = backlog_entry.entry
        if task.find_entry(title=entry[u'title'], url=entry[u'url']):
            continue
        log.debug((u'Restoring    %s' % entry[u'title']))
        entries.append(entry)
    if entries:
        log.verbose((u'Added    %s    entries    from    backlog' % len(entries)))
    purged = clear_entries(task=task.name, all=False, session=session)
    log.debug((u'%s    entries    purged    from    backlog' % purged))
    return entries
