

@property
@memoized
def d_results(self):
    hits = self.results.get('hits', {
        
    }).get('hits', [])
    hits = deduplicate(hits)
    d_results = []
    for res in hits:
        try:
            domain = Domain.wrap(d_results['_source'])
            if (domain.copied_from is not None):
                d_results.append(domain)
        except CopiedFromDeletedException as e:
            notify_exception(self.request, message='Fetched Exchange Snapshot Error: {}. The problem snapshot id: {}'.format(e.message, res['_source']['_id']))
    if (self.sort_by == 'newest'):
        pass
    else:
        d_results = Domain.hit_sort(d_results)
    return d_results

dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/appstore/views.py CommCareExchangeHomeView.d_results/VarMisuse@69/83 `res`->`d_results`