def get_bugs(qcc):
    """
    Return a list of dicts containing bug info.
    """
    bug_list = qcc.BugFactory.NewList('')
    bugs = []
    for bug in bug_list:
        bugs.append({'id': bug.Field('BG_BUG_ID'), 'summary': bug.Field(
            'BG_SUMMARY'), 'status': bug.Field('BG_STATUS'),
            'detection_date': bug.Field('BG_DETECTION_DATE')})
    return bugs
