(domain)
return upstream_list, downstream_list
Return 2 lists of reports
    The upstream_list contains reports that originated in the specified domain
    The downstream_list contains reports that have been pulled from a domain upstream of the specified domain
Return 2 lists of reports
    The upstream_list contains reports that originated in the specified domain
    The downstream_list contains reports that have been pulled from a domain upstream of the specified domain
Return 2 lists of reports The upstream_list contains reports that originated in the specified domain The downstream_list contains reports that have been pulled from a domain upstream of the specified domain
def get_upstream_and_downstream_reports(domain):
    """
    Return 2 lists of reports
    The upstream_list contains reports that originated in the specified domain
    The downstream_list contains reports that have been pulled from a domain upstream of the specified domain
    """
    upstream_list = {}
    downstream_list = {}
    reports = get_existing_reports(domain)
    for report in reports:
        if report.report_meta.master_id:
            downstream_list[report.get_id] = report
        else:
            upstream_list[report.get_id] = report
    return upstream_list, downstream_list
def get_upstream_and_downstream_reports ( domain ) : upstream_list = { } downstream_list = { } reports = get_existing_reports ( domain ) for report in reports : if report . report_meta . master_id : downstream_list [ report . get_id ] = report else : upstream_list [ report . get_id ] = report return upstream_list , downstream_list