diff --git a/src/prefect/ingest_monthly_platform_stats_gcs.py b/src/prefect/ingest_monthly_platform_stats_gcs.py index c71cf47..8194783 100644 --- a/src/prefect/ingest_monthly_platform_stats_gcs.py +++ b/src/prefect/ingest_monthly_platform_stats_gcs.py @@ -16,7 +16,7 @@ def request_monthly_platform_stats() -> list[dict]: """Request monthly platform statistics (e.g. number of photos or downloads) from Unsplash API""" endpoint = "/stats/month/" - response = request_unsplash_api(endpoint) + response = request_unsplash_api(endpoint=endpoint) return response diff --git a/src/prefect/ingest_photos_napi_gcs.py b/src/prefect/ingest_photos_napi_gcs.py index 1b8fa91..06ab366 100644 --- a/src/prefect/ingest_photos_napi_gcs.py +++ b/src/prefect/ingest_photos_napi_gcs.py @@ -35,7 +35,7 @@ def request_first_page( logger = get_run_logger() logger.info(f"Requesting page number 1 of https://api.unsplash.com/photos endpoint") - response = request_unsplash_api("/photos", params) + response = request_unsplash_api(endpoint="/photos", params=params) return response diff --git a/src/prefect/ingest_topics_gcs.py b/src/prefect/ingest_topics_gcs.py index 5bcae12..5e0bcd4 100644 --- a/src/prefect/ingest_topics_gcs.py +++ b/src/prefect/ingest_topics_gcs.py @@ -17,7 +17,7 @@ def request_topics() -> list[dict]: """Request topics (= photography genres which have a seperate content site on unsplash) from Unsplash API""" endpoint = "/topics/" - response = request_unsplash_api(endpoint) + response = request_unsplash_api(endpoint=endpoint) return response