"""Handle a scan result.""" from src.handle_result import neighbouring_rights, podcast def handle_result(bucket, key, result, file_metadata): """Handle the result of the scan based on args.""" if podcast.is_podcast_ad_read(bucket, key) and result == 0: podcast.update_podcast_adread(key) if neighbouring_rights.is_nr_file(bucket): neighbouring_rights.send_scan_result(key, result, file_metadata)