Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
prratek committed Mar 16, 2022
2 parents cf9ca73 + dfdd9c6 commit 504d189
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tap_instagram/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,9 +501,10 @@ def get_url_params(
self, context: Optional[dict], next_page_token: Optional[Any]
) -> Dict[str, Any]:
params = super().get_url_params(context, next_page_token)
params["metric"] = self._metrics_for_media_type(
metrics = self._metrics_for_media_type(
context["media_type"], context["media_product_type"]
)
params["metric"] = ",".join(metrics)
return params

def validate_response(self, response: requests.Response) -> None:
Expand Down Expand Up @@ -664,9 +665,10 @@ def get_url_params(
self, context: Optional[dict], next_page_token: Optional[Any]
) -> Dict[str, Any]:
params = super().get_url_params(context, next_page_token)
params["metric"] = self._metrics_for_media_type(
metrics = self._metrics_for_media_type(
context["media_type"], context["media_product_type"]
)
params["metric"] = ",".join(metrics)
return params

def validate_response(self, response: requests.Response) -> None:
Expand Down

0 comments on commit 504d189

Please sign in to comment.