Skip to content

Commit

Permalink
use named argument for request_unsplash_api
Browse files Browse the repository at this point in the history
  • Loading branch information
m-p-esser committed Oct 8, 2023
1 parent 1862678 commit c9a003a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/prefect/ingest_monthly_platform_stats_gcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/prefect/ingest_photos_napi_gcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/prefect/ingest_topics_gcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c9a003a

Please sign in to comment.