code: def get_alt_date_bug_totals(self, startday, endday, bug_ids):
          
          bugs = (BugJobMap.failures.by_date(startday, endday)
                                    .filter(bug_id__in=bug_ids)
                                    .values('bug_id')
                                    .annotate(total=Count('id'))
                                    .values('bug_id', 'total'))
  
          return {bug['bug_id']: bug['total'] for bug in bugs if bug['total'] >= 150}
docs: use previously fetched bug_ids to check for total failures
             exceeding 150 in 21 days