From 63fa1099a7fbb509bc2de696ba999dd1443fa125 Mon Sep 17 00:00:00 2001 From: Madison Swain-Bowden Date: Mon, 10 Oct 2022 14:23:31 -0700 Subject: [PATCH] Remove per-license selection logic --- .../dags/providers/provider_api_scripts/freesound.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/openverse_catalog/dags/providers/provider_api_scripts/freesound.py b/openverse_catalog/dags/providers/provider_api_scripts/freesound.py index 1d1ed89f9..bab05eebe 100644 --- a/openverse_catalog/dags/providers/provider_api_scripts/freesound.py +++ b/openverse_catalog/dags/providers/provider_api_scripts/freesound.py @@ -52,17 +52,7 @@ def __init__(self, *args, **kwargs): def get_media_type(self, record: dict) -> str: return constants.AUDIO - def ingest_records(self, **kwargs): - for license_name in [ - "Attribution", - "Attribution Noncommercial", - "Creative Commons 0", - ]: - logger.info(f"Obtaining audio records under license '{license_name}'") - super().ingest_records(license_name=license_name, **kwargs) - def get_next_query_params(self, prev_query_params: dict | None, **kwargs) -> dict: - license_name = kwargs.get("license_name") if not prev_query_params: start_date = "*" # Allow self.date to be undefined, necessary for the first full, successful @@ -101,7 +91,6 @@ def get_next_query_params(self, prev_query_params: dict | None, **kwargs) -> dic "previews", ] ), - "license": license_name, "filter": f"created:[{start_date} TO NOW]", "page": 1, }