def load_review_status(self): at = self.analysis_table records = self.get_analysis_records() if records: for ri in records: get_review_status(ri) at.refresh_needed = True
def __init__(self, record, *args, **kw): super(ReviewStatusDetailsModel, self).__init__(*args, **kw) if not record.review_status: get_review_status(record) self.items = [self._make_item(record, m) for m in ('intercepts', 'blanks', 'icfactors')] self.record_id = record.record_id
def load_review_status(self): records = self.get_analysis_records() if records: for repoid, rs in groupby_repo(records): self.dvc.sync_repo(repoid) for ri in rs: get_review_status(ri) self.refresh_needed = True
def __init__(self, record, *args, **kw): super(ReviewStatusDetailsModel, self).__init__(*args, **kw) if not record.review_status: get_review_status(record) # self.items = [item for m in ('intercepts', 'blanks', 'icfactors') # for item in self._make_item(record, m)] self.items = record.review_items self.record_id = record.record_id