(project)
Yield a section with the two most recently edited report builder reports
    for display in the dropdown.
Yield a section with the two most recently edited report builder reports
    for display in the dropdown.
Yield a section with the two most recently edited report builder reports for display in the dropdown .
def _get_report_builder_reports(project):
    """
    Yield a section with the two most recently edited report builder reports
    for display in the dropdown.
    """
    configs = _safely_get_report_configs(project.name)
    report_builder_reports = [c for c in configs if c.report_meta.created_by_builder]

    def key(config):
        """Key function for sorting configs"""
        modified = config.report_meta.last_modified
        if not modified:
            # Use the minimum date for any config thats missing it
            modified = datetime.datetime(1, 1, 1)
        return modified

    report_builder_reports.sort(key=key, reverse=True)
    if len(report_builder_reports) > 2:
        report_builder_reports = report_builder_reports[:2]
    if configs:
        yield (
            _('Report Builder Reports'),
            [_make_report_class(config, show_in_dropdown=not config.title.startswith(TEMP_REPORT_PREFIX))
             for config in report_builder_reports]
        )
def _get_report_builder_reports ( project ) : configs = _safely_get_report_configs ( project . name ) report_builder_reports = [ c for c in configs if c . report_meta . created_by_builder ] def key ( config ) : """Key function for sorting configs""" modified = config . report_meta . last_modified if not modified : # Use the minimum date for any config thats missing it modified = datetime . datetime ( 1 , 1 , 1 ) return modified report_builder_reports . sort ( key = key , reverse = True ) if len ( report_builder_reports ) > 2 : report_builder_reports = report_builder_reports [ : 2 ] if configs : yield ( _ ( 'Report Builder Reports' ) , [ _make_report_class ( config , show_in_dropdown = not config . title . startswith ( TEMP_REPORT_PREFIX ) ) for config in report_builder_reports ] )